From: Pierre Ossman Date: Thu, 26 May 2011 14:57:25 +0000 (+0000) Subject: As we also fall through for FL_FOCUS, we need to do an extra check of the X-Git-Tag: v1.1.90~327 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=105738ce5db4da961280e19bcdab31fc78861ae9;p=tigervnc.git 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 --- 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;