]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
handle FocusIn and FocusOut in NetWM fullscreen mode
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Jan 2009 22:11:55 +0000 (22:11 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Jan 2009 22:11:55 +0000 (22:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8678 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 70096022c54b10a8e2c7ae93d768a1b4f3e345b6..0fec70d81ccac62617a545080b110e24127a56ab 100644 (file)
--- 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;