After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733988 - Provide a way to get out of VM in fullscreen through keyboard
Provide a way to get out of VM in fullscreen through keyboard
Status: RESOLVED DUPLICATE of bug 730826
Product: gnome-boxes
Classification: Applications
Component: display
unspecified
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-07-30 15:17 UTC by Lasse Schuirmann
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lasse Schuirmann 2014-07-30 15:17:58 UTC
From GUADEC BoF 2014:
we should think about other possible shortcuts for that and fallback to Ctrl+Alt if this is not possible
Comment 1 Zeeshan Ali 2014-07-31 09:01:59 UTC
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.
Comment 2 Christophe Fergeau 2014-08-05 15:19:30 UTC
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.
Comment 3 Lasse Schuirmann 2014-08-16 21:16:18 UTC
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 ;).
Comment 4 Christophe Fergeau 2014-08-18 08:23:51 UTC
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.
Comment 5 Christophe Fergeau 2014-09-19 08:18:06 UTC
This is related to bug #730826
Comment 6 Zeeshan Ali 2014-09-29 12:51:33 UTC
(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 ***