From 038fdce958ecce0a304fe8d7f43b561156cb0ac8 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 27 Jan 2009 22:11:55 +0000 Subject: [PATCH] handle FocusIn and FocusOut in NetWM fullscreen mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8678 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2