[Spice-devel] spice-gtk : magic key options

Frédéric Grelot fredericg_99 at yahoo.fr
Tue May 31 15:18:42 PDT 2011


Thanks Marc-André for your answers. With your advice, I just tested latest git version, and had some problems :
-I had to go past the warnings about new options (I'm still on Ubuntu, so --with-gtk2.0 helps, and --disable-werror since there is no libjpeg-turbo ppa available yet), but that's done.
-now that it works : Alt+space still pops up the menu (not the file menu, but that one with the reduce, restore, move window options)
-Alt alone does the same as before : if I'm in panning mode in PS, the cursor changes to "zoom out" as expected, but then nothing happens if I click or click+drag
-once in fullscreen, nothing goes out of the client! That means that Shift+F11 does not go back to window mode... Fortunately I am in dual screen (guest has single screen), so I moved the mouse away to the second monitor, hit alt+tab to activate the client again, and only then, Alt+F4 or shift+F11 work.
-Actually, I noticed that when the mouse is grabbed (even in window mode), shift+F11 does not work... It only work when the mouse is outside the guest area
-I'm not sure if that was the case before, but now, the window has always the same size at opening (and not very big... actually fits exactly with 640x480 in the guest). If I was previously in fullscreen for example, the window opens small, and the agent fits the guest's resolution to 640x480 : not very handy... At client opening, it would be a good idea to try to match the window to the guest resolution, eventually by directly going to fullscreen.
-I found the configuration file, but not the option to put into it...
-Using a magic key as suggested, I hope you'll put shortcut for all the other options. In particular, it would be handy to be able to disable the "match guest resolution to window size" once in fullscreen : that way, the guest's resolution matches the client fullscreen resolution when it goes fullscreen, and then sticks to it... FYI, in VB there is a popup menu (at the top or bottom of the screen, configurable) that opens when the mouse reaches the border. It contains all options related to the client : de/activate this kind of option, plug/unplug devices, etc...

That's a lot of suggestion for tonight, so I'll come back later to you if necessary! Anyway, I'll keep testing and feedbacking you!

Frederic.

----- Mail original -----
> Hi Frédéric,
> 
> ----- Original Message -----
> > works very well over 100Mbit network, 1440*1280 fullscreen), some
> > key
> > combinations don't work well. In particular, alt works alone
> > (client's
> > cursor gets changed), but you can't press another key together with
> > it
> > nor click (zoom out in photoshop is with alt+space+click, or
> > alt+click
> > when already in pan mode, which doesn't work either). When I try
> > that,
> > the gtk client's menu appears, and that is very frustrating...
> 
> > That's my first point : at the moment, only shift+F11/F12 are
> > supposed
> > to interact with the outside, but combinations involving Alt
> > interfere.
> 
> Hopefully, this is fixed in git. We now disable all Gtk mnemonics &
> accels. If you have a chance, please give it a try and tell us if
> the problem persist.
> 
> > My second point would be about a configuration option : I used to
> > use
> > Virtualbox, and there is a possibility to choose the key that gets
> > intercepted. Using specifically "Right shift" (which is, otherwise,
> > almost never used), I solved all my problems : I'm not sure if
> > there
> > is already a configuration framework for storing user-defined
> > options
> > in spicy, but maybe that would be a good thing...
> 
> spice-gtk have support for custom grab key combination. It is used by
> virt-manager "Preferences" for instance. Spicy however, doesn't have
> configuration UI for it. Adding it to spicy.ini configuration file
> should be easy, if you don't mind editing ini files. I'll keep that
> in mind before the next release. Feel free to open a bug in
> bugzilla.freedesktop.org.
> 
> > I talked only about a single "magic key", regarding how VB works :
> > the
> > base key (or combination, it can be "Alt+Ctrl" for example) is
> > defined, and gives access to all shortcuts : key+F for fullscreen,
> > "magic key"+other key for the other functions....
> 
> That seems neat, indeed. I very much like it, and I might well try to
> implement that for spicy.
> 
> > Sorry for not helping much in this project that I really believe
> > in,
> > but I hope that at least my user feedback will help you!
> 
> Your feedback is great, thanks a lot!
> 
> --
> Marc-André Lureau
> 
> 


More information about the Spice-devel mailing list