summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-08-19 14:08:04 +0200
committerPierre Ossman <ossman@cendio.se>2014-08-22 15:10:29 +0200
commit48ef54d59b7abbc06d660dbfe431708b10d8e3dc (patch)
tree9e7d26c1761b051f4bece626d2ba3e5ce469ace0 /vncviewer
parenta83c88d513cc639cdf79a1cd7e97cb978001b2ed (diff)
downloadtigervnc-48ef54d59b7abbc06d660dbfe431708b10d8e3dc.tar.gz
tigervnc-48ef54d59b7abbc06d660dbfe431708b10d8e3dc.zip
Disable input methods when the viewport is focused
Input methods are way too complex for us to map them to the VNC protocol in any sane manner. Best just to disable them and rely on simple keyboard behaviour when the viewport is active.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/Viewport.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index 917a9817..81dc7ac0 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -410,6 +410,7 @@ int Viewport::handle(int event)
return 1;
case FL_FOCUS:
+ Fl::disable_im();
// Yes, we would like some focus please!
return 1;
@@ -418,6 +419,7 @@ int Viewport::handle(int event)
// sense (e.g. Alt+Tab where we only see the Alt press)
while (!downKeySym.empty())
handleKeyRelease(downKeySym.begin()->first);
+ Fl::enable_im();
return 1;
case FL_KEYDOWN: