Open WhyNotHugo opened 1 year ago
In particular, I want to use this for shotman, which uses this protocol.
I think wlroots supports it: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/45c0877e3433f2b057f9125a8bc735057e088e6c
Adding a +1 to this, given that the following PRs have made it into wl-protocols
, wlroots
, & gtk-layer-shell
:
Note: FWIW, there is also one for wayfire: WayfireWM/wayfire#962
Testing the quick gtk-layer-shell
demo program (examples/gtk-layer-demo
) on Sway 1.8.1
seems to still have non-ideal behavior when setting the "On Demand" keyboard mode (--keyboard o
) and either "Top" or "Overlay" layers (--layer t
or --layer o
).
When on these layers, it's impossible to get keyboard focus off of the demo program window without first setting keyboard setting back to "None". Not ideal from a UI/UX perspective, nor from an app developer perspective given the protocol's promise of an "On Demand" keyboard mode versus "Exclusive".
Notes:
1.8.1
/ 1.8.1[-r1]
, or some even 1.7.1
in the case of Debian / Ubuntu variants.EDIT: I just tested building from source each package. I can confirm that the gtk-layer-shell
demo behaves properly on latest sway
+ wlroots
git branches:
00:00:00.000 [INFO] [sway/main.c:338] Sway version 1.9-dev-dc634c4a (Jul 23 2023, branch 'master')
00:00:00.000 [INFO] [sway/main.c:339] wlroots version 0.17.0-dev
Unless this gets backported to the 1.8
branch, users expecting the "On Demand" keyboard focus behavior will have to wait until newer packages of sway
are released.
This is a feature request for zwlr_layer_surface_v1::keyboard_interactivity v4::on_demand:
I think a suitable implementation for sway is to handle focus like a a floating window (e.g.: same mouse rules and same mapping to toggle focus).
If the previous state was
exclusive
, it initially has focus, if its previous state wasnone
, it does not.