]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
ignore all potentially disruptive events when in fullscreen
[xonotic/darkplaces.git] / 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();