summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-11 10:46:12 +0200
committerPierre Ossman <ossman@cendio.se>2014-09-11 10:46:12 +0200
commit6d66d6deb790545dd475f3e74cf817be97d23cea (patch)
tree642621fc2c24d4c286f591bb31e0558c43e606a6 /vncviewer
parent38fcebbb00d849d46158f66793ae0f7f3c7c7ec4 (diff)
downloadtigervnc-6d66d6deb790545dd475f3e74cf817be97d23cea.tar.gz
tigervnc-6d66d6deb790545dd475f3e74cf817be97d23cea.zip
Protect the optional IM disabling calls with #ifdef:s
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/Viewport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index ec48b02e..595a4aa8 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -410,7 +410,9 @@ int Viewport::handle(int event)
return 1;
case FL_FOCUS:
+#ifdef HAVE_FLTK_IM
Fl::disable_im();
+#endif
// Yes, we would like some focus please!
return 1;
@@ -419,7 +421,9 @@ int Viewport::handle(int event)
// sense (e.g. Alt+Tab where we only see the Alt press)
while (!downKeySym.empty())
handleKeyRelease(downKeySym.begin()->first);
+#ifdef HAVE_FLTK_IM
Fl::enable_im();
+#endif
return 1;
case FL_KEYDOWN: