You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If scale is started when a layer-shell surface has the keyboard focus, it cannot grab the focus for itself.
To Reproduce
Steps to reproduce the behavior:
Enable the scale plugin
Ensure that a layer-shell surface has the keyboard focus
Start the scale plugin (keybinding or IPC works)
Expected behavior
Scale has keyboard interaction (e.g. arrows, ESC).
Actual behavior
Scale starts, but the layer-shell surface continues to have the keyboard focus. Using the mouse to interact with scale does work. Interestingly, the scale-title-filter plugin also works.
This can be easily reproduced using the gtk-layer-demo program (setting keyboard interactivity to "On demand"). I'm also attaching a simple test case (in Python, but Github does not allow .py) that calls scale via IPC when a button is clicked.
Believe it or not, this is intentional. Scale's input grab is below the layer where panels and docks usually are. This is done so that you can indeed interact with wf-panel and other panels while in scale, someone requested this feature awhile ago. The solution/expectation is to have your dock not be keyboard interactive unless it really needs to interact with the keyboard.
Thanks for the explanation! BTW is there a recommended way for "losing" the keyboard focus from a layer-shell view while keeping the availability to be focused later? Switching keyboard-interactivity to NONE and back to ON_DEMAND grabs again the keyboard focus.
Describe the bug
If scale is started when a layer-shell surface has the keyboard focus, it cannot grab the focus for itself.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Scale has keyboard interaction (e.g. arrows, ESC).
Actual behavior
Scale starts, but the layer-shell surface continues to have the keyboard focus. Using the mouse to interact with scale does work. Interestingly, the scale-title-filter plugin also works.
Wayfire version
git, 44e1fa9
This can be easily reproduced using the gtk-layer-demo program (setting keyboard interactivity to "On demand"). I'm also attaching a simple test case (in Python, but Github does not allow .py) that calls scale via IPC when a button is clicked.
Real-world case: Cairo-Dock with this plugin
ipc_window.txt
The text was updated successfully, but these errors were encountered: