diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-07-21 16:42:12 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-08-22 15:10:28 +0200 |
commit | 6b9622db86bf4e35f8e5baf1be2321401659a42d (patch) | |
tree | 9dedc635652ef3095c6cc71c3855c81ff952b7e5 /vncviewer/vncviewer.cxx | |
parent | 4f3ac69a11b98aa7eea88a6336140bced4c66eae (diff) | |
download | tigervnc-6b9622db86bf4e35f8e5baf1be2321401659a42d.tar.gz tigervnc-6b9622db86bf4e35f8e5baf1be2321401659a42d.zip |
Add X11 keyboard handler
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r-- | vncviewer/vncviewer.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 3f039379..82286ab8 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -36,6 +36,11 @@ #define mkdir(path, mode) _mkdir(path) #endif +#if !defined(WIN32) && !defined(__APPLE__) +#include <X11/Xlib.h> +#include <X11/XKBlib.h> +#endif + #include <rfb/Logger_stdio.h> #include <rfb/SecurityClient.h> #include <rfb/Security.h> @@ -386,6 +391,11 @@ int main(int argc, char** argv) init_fltk(); +#if !defined(WIN32) && !defined(__APPLE__) + fl_open_display(); + XkbSetDetectableAutoRepeat(fl_display, True, NULL); +#endif + Configuration::enableViewerParams(); /* Load the default parameter settings */ |