-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix focus handling (attempt 2) #154
Conversation
The client side is working. The server side still need some work. QubesOS/qubes-gui-daemon#98 |
I hope this is the last fix about window focus before wayland. |
Before 1c5b880: consistently buggy (when VM intra-transfer focus) After: sometimes window will lose keyboard focus (mouse works fine). Minimize->maximize won't fix the problem. Have to click desktop when window is showing to fix. Solution: have VM report window focus to dom0 QubesOS/qubes-issues#7403 |
Remaining problems:
|
// TODO: check if window is "top-level" (has border), and only focus if it or its child was not focused | ||
// some applications get confused if you give focus to its context menu | ||
// I'm not sure how this works yet | ||
bool need_focus = false; |
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.
This is Problem 2 mentioned.
If anyone know how to do this properly, please send pull request to my branch (fix-focus-2
)
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.
Windows have decorations if and only if they are not override-redirect. Context menus can just be not given focus.
@locriacyber Would you mind splitting the PKGBUILD changes into a separate PR?
Are these regressions, or are they problems with the current agent too? |
They are new problems (recalling from memory, since I haven't use old agent for awhile). Problem 1: Before this patch, key repeat was disabled in AppVM. Even if a key was stuck in AppVM, it won't generate stuff likeeeeeeeeeeeeeeeeee <- this. @DemiMarie Can you try to reproduce this? One way for you to reproduce problem 2 is (related: QubesOS/qubes-issues#7403)
It it was not buggy, the cursor should become solid, meaning Terminal has regained focus. |
This fixed the bug that the mouse remains grabbed when the focused window is killed with "Close Window" from XFCE
Seem to have less focus problem with this change
Superseded by #169 |
This resolves most focus-related issues.