]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
ignore all potentially disruptive events when in fullscreen
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2008 16:34:05 +0000 (16:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2008 16:34:05 +0000 (16:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8288 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 47f7360b910f279879d31b90a7cc16dd363a757f..adbe7a597a60654994b217fee06b1a165236284c 100644 (file)
--- 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();