]> source.dussan.org Git - tigervnc.git/commitdiff
As we also fall through for FL_FOCUS, we need to do an extra check of the
authorPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:57:25 +0000 (14:57 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:57:25 +0000 (14:57 +0000)
event code here.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4451 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index a4485cde57332098bb3db70b520abe7e074c0356..f63b16ea54534283d155542c749a1ec3ae8a8c93 100644 (file)
@@ -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;