summaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-07-21 16:42:12 +0200
committerPierre Ossman <ossman@cendio.se>2014-08-22 15:10:28 +0200
commit6b9622db86bf4e35f8e5baf1be2321401659a42d (patch)
tree9dedc635652ef3095c6cc71c3855c81ff952b7e5 /vncviewer/vncviewer.cxx
parent4f3ac69a11b98aa7eea88a6336140bced4c66eae (diff)
downloadtigervnc-6b9622db86bf4e35f8e5baf1be2321401659a42d.tar.gz
tigervnc-6b9622db86bf4e35f8e5baf1be2321401659a42d.zip
Add X11 keyboard handler
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r--vncviewer/vncviewer.cxx10
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 */