-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
Layershells cannot steal focus from a window that has captured the mouse #4968
Comments
outfoxxed
changed the title
Leyershells cannot steal focus from a window that has captured the mouse
Layershells cannot steal focus from a window that has captured the mouse
Mar 5, 2024
patch.txt |
There are some issues with this patch:
Newly created shells are able to kick you out of mouse grabs now though. |
patch.txt |
Note: rolled back to 300d77e so the patch would apply |
was fixed by #6394 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hyprland Version
System/Version info
Bug or Regression?
Bug
Description
When an exiting layershell's keyboard_interactivity is set to exclusive or a new layershell is created with exclusive keyboard_interactivity and a window (usually a game) has captured the mouse, the window retains ownership of the mouse and keyboard. As soon as the window gives it up (opening a game menu) the layershell gets exclusive focus.
How to reproduce
I've prepared a demo that can be used with https://git.outfoxxed.me/outfoxxed/quickshell/commit/5ac04649aabdba2bf0ee67357a3d1065b8b17d97 (this specific commit is guaranteed to work.)
layerbug.qml
You can build quickshell as a normal cmake project (needs wayland deps + qt6) and run the demo with
quickshell --config /path/to/demo.qml
.This is the same demo shown in the attached video. It will open as a layershell on the overlay layer with a click mask over the buttons in the UI. "enable inhibitors" will wait for 2 seconds and then set the keyboard focus from none to exclusive along with disabling the click mask. "enable inhibitors & hide" will do the same thing except it will close the shell and open a new one with exclusive focus after the 2 second period ends.
In both cases the shell will not be able to take focus from the window.
Crash reports, logs, images, videos
output.mp4
The text was updated successfully, but these errors were encountered: