- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 54
Add VM keyboard capture feature #171
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
base: main
Are you sure you want to change the base?
Conversation
| Associated pull request: | 
| The XGrabKeyboard is used here to grab the keyboard and the downside is that some shortcuts that are handled on a low level using input device directly (keyboard layout change, Ctrl+Alt+Fx, etc) are still passed to dom0. | 
| It's a bit late to add this into R4.3... but since it's relatively simple, maybe we can make an exception. But another potentially problematic case is screenlocker. This must not interfere with it. I haven't checked, but AFAIR normally keyboard grab does prevent locking the screen... | 
…n locker exit. When the sceeen locker is triggered while a window is grabbed, then the grabbed window is losing the focus and the focus is set to return to None after the screen locker exit.
| 
 Fixed. 
 Do you think something like this should be good? Looks too long for me though. Could be hard to understand. 
 Tested both file copy and window spawning from a qube - both work fine: keyboard is ungrabbed and the focus is in the new window. 
 Tested this and it works fine as well, the FocusOut event is sent before the screen locker tries to grab the keyboard (maybe it's sent when the screen locker window is created). | 
Example title name for the garbbed window, where Ctrl+Control_R is the key sequence to grab/ungrab a keyboard: Keyboard grabbed Ctrl+Control_R [disp1234] Terminal - user@disp1234:~
| Keyboard grab indication works fine for XFCE. | 
| The screen locker in KDE is not generating a FocusOut event when it's trying to lock the screen. Maybe it checks if the keyboard is grabbed before creating a new screen lock window. | 
Fixes: QubesOS/qubes-issues#9785