From 6d66d6deb790545dd475f3e74cf817be97d23cea Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 11 Sep 2014 10:46:12 +0200 Subject: Protect the optional IM disabling calls with #ifdef:s --- vncviewer/Viewport.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vncviewer') 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: -- cgit v1.2.3