summaryrefslogtreecommitdiffstats
path: root/src/spice-gtk-session.c
Commit message (Collapse)AuthorAgeFilesLines
* Use #ifdef {HAVE,USE}_FOO instead of #if {HAVE,USE}_FOOFabiano Fidêncio2016-02-121-2/+2
| | | | | | | | | | | | | | | | | | | While "#if USE_FOO" checks for the value of the variable USE_FOO, "#ifdef" checks whether USE_FOO is defined or not. It means, if we had something like: #define USE_FOO 0, we would have: #if USE_FOO /* Any code in here would NOT be compiled */ #endif #ifdef USE_FOO /* Any code in here would be compiled */ #endif No problem was faced on spice-gtk till now because either USE_FOO is not defined or defined as 1, but let's try to have it standardized. Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
* Grab keyboard based on session focus.snir sheriber2015-12-211-0/+35
| | | | | | | | | | | | | | | | | | | | When using multiple monitors moving mouse between monitors releases keyboard grab. Reproduce bug -Open multiple monitors remote-viewer session -Click on one of the monitors to get focus & keyboard-grab -Move mouse to another monitor and try keyboard command (do not click) At this point all keyboard commands are being executed on the client machine instead of the remote machine I added keyboard_has_focus and mouse_has_pointer variables at the session and now these properties are being tested for the session instead for the current widget (works also when using alt-tab). Resolves: rhbz#1275231 Acked-by: Pavel Grunt <pgrunt@redhat.com>
* Gtk applications should only include spice-client-gtk.hJonathon Jongsma2015-10-091-1/+1
| | | | | | This header is the single include needed for all gtk-related functionality, similar to spice-client.h. Generate a compiler warning if a different header is included.
* docs: Add missing parameter/field descriptionsPavel Grunt2015-09-251-2/+2
|
* Move gtk/ -> src/Marc-André Lureau2015-06-081-0/+1229
For historical reasons, the code was placed under gtk/ subdirectory. If it was always bugging you, bug no more!