From: divverent Date: Tue, 27 Jan 2009 22:11:55 +0000 (+0000) Subject: handle FocusIn and FocusOut in NetWM fullscreen mode X-Git-Tag: xonotic-v0.1.0preview~1916 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=038fdce958ecce0a304fe8d7f43b561156cb0ac8;p=xonotic%2Fdarkplaces.git handle FocusIn and FocusOut in NetWM fullscreen mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8678 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index 70096022..0fec70d8 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -499,13 +499,13 @@ static void HandleEvents(void) VID_RestoreSystemGamma(); break; case FocusIn: - if (vid.fullscreen) + if (vid.fullscreen && !vid_netwmfullscreen.integer) break; // window is now the input focus vid_activewindow = true; break; case FocusOut: - if (vid.fullscreen) + if (vid.fullscreen && !vid_netwmfullscreen.integer) break; // window is no longer the input focus vid_activewindow = false;