From 3062091a1291ca1eb2d48d76c8f077409601b802 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 8 May 2008 16:34:05 +0000 Subject: [PATCH] ignore all potentially disruptive events when in fullscreen git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8288 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- 2.39.2