From 105738ce5db4da961280e19bcdab31fc78861ae9 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 26 May 2011 14:57:25 +0000 Subject: [PATCH] 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 --- vncviewer/DesktopWindow.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5