GNOME Bugzilla – Bug 733988
Provide a way to get out of VM in fullscreen through keyboard
Last modified: 2016-03-31 13:22:07 UTC
From GUADEC BoF 2014: we should think about other possible shortcuts for that and fallback to Ctrl+Alt if this is not possible
The proposed solution in GUADEC BoF 2014 was to show OSD and move focus to OSD (perhaps unfullscreen button gets default focus) when Ctrl+Alt or Ctrl+Shift+f11 (or some other shortcut) is pressed.
Regarding focus, when this combination is pressed, I'd make sure the spice-gtk widget stops grabbing the keyboard/mouse, and make it take back the keyboard grab when moving the mouse or clicking again in the VM.
I tried to look into this, so far with no success. So here comes a summary of existing efforts, maybe someone can help. As far as I understand this matter we need to keep the following cases in mind: 1. A VM without spice agent running Here we have the grabbing and ungrabbing. This situation isnt really problematic. With a simple change like this (idea comes from zeeshan, just stripped it down a bit): http://pastebin.com/5frTTnGE you can observe that an event with type 10 is sent when ungrabbing. We can capture this and show OSD there so thats not the problem. 2. A VM with spice agent running There is no explicit grabbing/ungrabbing in this case so we wont get this signal here. I guess the guest gets the Ctrl+Alt shortcut in every case if the mouse is in the guest. I assume we somehow need the spice-agent to grab this for us and send us a signal or so. All this is a bit guessing from my side. It would be great if someone with more spice experience than me could add some hints. Spice channel was very quiet but maybe its just too late ;).
For 2), I think spice-gtk should be changed so that the grab/ungrab is honored even when the agent is running. The implicit grab would be restored upon moving the mouse (?), clicking/pressing the grab shortcut.
This is related to bug #730826
(In reply to comment #5) > This is related to bug #730826 I think its more of a duplicate since we decided to do this and not provide direct way to send keys to host. *** This bug has been marked as a duplicate of bug 730826 ***