Client keyboard focus
Maxim Kartashev
maxim.kartashev at jetbrains.com
Wed Nov 22 19:35:52 UTC 2023
Thanks, Niels!
> you'll get a leave for the first window and an enter for
> the second, and from there you can connect the dots
Right, but it's the connecting the dots part that gives me the trouble.
These events aren't connected in any way that I can imagine. The second one
may not actually come at all if the user has switched to another app and
then never returned to this one.
On Wed, Nov 22, 2023 at 10:06 PM Niels De Graef <ndegraef at redhat.com> wrote:
> Hi Maxim,
>
> I asked around a bit, and one of the GTK developers replied that you
> might be interested in wl_keyboard's enter [1] and leave [2] events
> (note that several other related objects have similar events).
>
> Basically, you'll get a leave for the first window and an enter for
> the second, and from there you can connect the dots
>
> -- Niels
>
> [1]: https://wayland.app/protocols/wayland#wl_keyboard:event:enter
> [2]: https://wayland.app/protocols/wayland#wl_keyboard:event:leave
>
> On Wed, Nov 22, 2023 at 5:22 PM Maxim Kartashev
> <maxim.kartashev at jetbrains.com> wrote:
> >
> > Hi, All!
> >
> > I've got another Wayland-related question:
> > In Java, the "window lost focus" event has a property that points to the
> window that got the focus instead, if any. In essence, an event without
> that property means that the focus is now in another app, while non-null
> property means that some other window of our app still got it.
> >
> > I wonder if you could help me to determine if this is implementable in
> Wayland?
> >
> > Thanks in advance,
> >
> > Maxim.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20231122/11433d73/attachment-0001.htm>
More information about the wakefield-dev
mailing list