summaryrefslogtreecommitdiffstats
path: root/client/inputs_channel.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2010-11-01 23:45:43 +0100
committerAlon Levy <alevy@redhat.com>2010-12-30 12:08:31 +0200
commitd66c1904f984bcb1f4a5d9e24811636cdda0c2e1 (patch)
tree1e03324777732852fb85dead9468d65f047a0725 /client/inputs_channel.h
parent3c4633500466914e33d577582803a9258b95b984 (diff)
downloadspice-d66c1904f984bcb1f4a5d9e24811636cdda0c2e1.tar.gz
spice-d66c1904f984bcb1f4a5d9e24811636cdda0c2e1.tar.xz
spice-d66c1904f984bcb1f4a5d9e24811636cdda0c2e1.zip
client inputs: stop blinking keyboard when out of focus
We could introduce another boolean to prevent changes, or just reuse _active_modifiers_event = true to prevent further update. Additionaly this patch restore the keyboard state when focusing out, which is fine when dealing with full remote desktop, but should be reconsidered if/when SPICE supports remote windows managed by client window manager for instance, imho.
Diffstat (limited to 'client/inputs_channel.h')
-rw-r--r--client/inputs_channel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/inputs_channel.h b/client/inputs_channel.h
index 00e185ce..254ed450 100644
--- a/client/inputs_channel.h
+++ b/client/inputs_channel.h
@@ -34,6 +34,7 @@ public:
virtual void on_key_down(RedKey key);
virtual void on_key_up(RedKey key);
virtual void on_focus_in();
+ virtual void on_focus_out();
void on_mouse_position(int x, int y, int buttons_state, int display_id);
@@ -72,6 +73,7 @@ private:
bool _active_motion;
int _motion_count;
uint32_t _modifiers;
+ uint32_t _on_focus_modifiers;
Mutex _update_modifiers_lock;
bool _active_modifiers_event;