summaryrefslogtreecommitdiffstats
path: root/client/application.h
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2009-12-30 12:19:54 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:51:17 +0200
commit8ce343daa08d2807428f71f552e22ab5319f8aea (patch)
treefb319753001d23fda2cb174de30db4d1b6539f8f /client/application.h
parentd8a3c2c12a306eb814cebe8dac894950652f441a (diff)
downloadspice-8ce343daa08d2807428f71f552e22ab5319f8aea.tar.gz
spice-8ce343daa08d2807428f71f552e22ab5319f8aea.tar.xz
spice-8ce343daa08d2807428f71f552e22ab5319f8aea.zip
spice: on_activate_screen generates on_key_down for any modifier pressed
-call SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc...) only once, in RedWindow::init() -add Application::cleanup_globals() & RedWindow::cleanup() -cleanup LowLevelKeyboardProc()
Diffstat (limited to 'client/application.h')
-rw-r--r--client/application.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/application.h b/client/application.h
index c576dba6..38fd30ec 100644
--- a/client/application.h
+++ b/client/application.h
@@ -208,9 +208,11 @@ private:
bool unpress_key(RedKey key);
void reset_sticky();
static bool is_sticky_trace_key(RedKey key);
+ void sync_keyboard_modifiers();
static void init_logger();
static void init_globals();
+ static void cleanup_globals();
friend class DisconnectedEvent;
friend class ConnectionErrorEvent;