summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-05-26 14:57:25 +0000
committerPierre Ossman <ossman@cendio.se>2011-05-26 14:57:25 +0000
commit105738ce5db4da961280e19bcdab31fc78861ae9 (patch)
treee5792395139ec242f995a1ca828b92b102b2be7d /vncviewer
parent1870ab18d8021ffb561b5196a4405b50611a61b9 (diff)
downloadtigervnc-105738ce5db4da961280e19bcdab31fc78861ae9.tar.gz
tigervnc-105738ce5db4da961280e19bcdab31fc78861ae9.zip
As we also fall through for FL_FOCUS, we need to do an extra check of the
event code here. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4451 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index a4485cde..f63b16ea 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -179,7 +179,8 @@ int DesktopWindow::handle(int event)
// FIXME: We reassert the keyboard grabbing on focus/unfocus as FLTK
// releases the grab when someone calls Fl::grab(0)
case FL_FULLSCREEN:
- fullScreen.setParam(fullscreen_active());
+ if (event == FL_FULLSCREEN)
+ fullScreen.setParam(fullscreen_active());
if (!fullscreenSystemKeys)
break;