wmww / gtk-layer-shell

A library to create panels and other desktop components for Wayland using the Layer Shell protocol
GNU General Public License v3.0
324 stars 16 forks source link

Modifiers not reported in click events after using gtk_layer_init_for_window() #175

Closed Tamaranch closed 9 months ago

Tamaranch commented 9 months ago

Not sure why I didn't report this already, as I'd noticed it for a while on xfce4-panel, or it's already been discussed somewhere and I can't remember. Anyway it's easily reproducible: after applying gtk_layer_init_for_window() on a GtkWindow, event->state is always zero in the "button-press-event" signal handler.

wmww commented 9 months ago

What keyboard interactivity mode is being used? If it's none this is not surprising, as the app doesn't have access to the keyboard.

Tamaranch commented 9 months ago

Indeed, it works in exclusive mode, but not always in on-demand mode, depending on the compositor. So I'm not in the right place.

I find it a bit odd that it depends on the keyboard interactivity mode, because we're talking about a click event, where the keyboard keys only intervene as modifiers of this event, not a key event. But then, I guess there's not much you can do about it, and it had to be discussed at the protocol level...