From: havoc Date: Thu, 8 May 2008 16:34:05 +0000 (+0000) Subject: ignore all potentially disruptive events when in fullscreen X-Git-Tag: xonotic-v0.1.0preview~2244 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3062091a1291ca1eb2d48d76c8f077409601b802;p=xonotic%2Fdarkplaces.git ignore all potentially disruptive events when in fullscreen git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8288 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index 47f7360b..adbe7a59 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -431,20 +431,28 @@ static void HandleEvents(void) Sys_Quit(0); break; case MapNotify: + if (vid.fullscreen) + break; // window restored vid_hidden = false; VID_RestoreSystemGamma(); break; case UnmapNotify: + if (vid.fullscreen) + break; // window iconified/rolledup/whatever vid_hidden = true; VID_RestoreSystemGamma(); break; case FocusIn: + if (vid.fullscreen) + break; // window is now the input focus vid_activewindow = true; break; case FocusOut: + if (vid.fullscreen) + break; // window is no longer the input focus vid_activewindow = false; VID_RestoreSystemGamma();