-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for layer-shell on_demand keyboard interactivity #7587
Add support for layer-shell on_demand keyboard interactivity #7587
Conversation
How was the bug reproduced? Is it with or without keyboard exclusivity? The git history of this PR is a little foo. Having a commit for each of the fixes with a title and description that fits would be best. |
This was tested with a layer without any keyboard exclusivity (a notification from swaync with this PR). In the video below, the popup notification was tested while the second layer has keyboard exclusivity and covers the whole output (it's transparent). 2023-05-16.11-09-53.1.mp4Prior to the fixes, you'd be able to focus and move views below an exclusive layer shown in the video below: 2023-05-16.11-19-57.1.mp4
I'm on it! |
273d486
to
37d1390
Compare
I removed the commit that disallowed non-keyboard exclusive layers from receiving mouse clicks while there being a exclusive layer beside it (ex: waybar receiving clicks while rofi is visible), so ignore that part in the videos above. |
Hmm I'm a little confused between the original PR description and what the video displays. A few notes about keyboard interactivity:
More info here: https://wayland.app/protocols/wlr-layer-shell-unstable-v1#zwlr_layer_surface_v1:enum:keyboard_interactivity SwayNotificationCenter popups with a text field would definitely want |
Makes sense. |
I've got the changes necessary to advertise |
Either works! |
Updated everything, would you like a clean commit history too? |
a522cd7
to
08d4626
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking better! Still a thing remaining though. :)
21ed68b
to
7533e3f
Compare
Anything else that needs to be done? |
d7ed064
to
12274f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@ErikReider Do you want to reword the git commits before we merge? They talk about the original version which had the wrong focus behavior. A conflict also snuck in in the meantime. Will be merged when that is out of the way. :) |
This allows for layer shell surfaces to receive focus while the surface is explicitly focused, i.e allowing text fields to receive keyboard input just like a regular surface.
12274f2
to
40e914c
Compare
Supersedes #5974
Tested (from original PR) with gtk-layer-demo:
More test cases would be appreciated :)