From 6b9622db86bf4e35f8e5baf1be2321401659a42d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 21 Jul 2014 16:42:12 +0200 Subject: Add X11 keyboard handler --- vncviewer/vncviewer.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vncviewer/vncviewer.cxx') 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 +#include +#endif + #include #include #include @@ -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 */ -- cgit v1.2.3