]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix the event mask so that the gamma is reset when DP loses the focus or
authorrain <rain@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Jul 2003 08:23:51 +0000 (08:23 +0000)
committerrain <rain@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Jul 2003 08:23:51 +0000 (08:23 +0000)
the pointer leaves the window.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3272 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 27f89f9299b9e3a7e0eec55a5329aaaa702ee3cd..4a5e04171031b3050e17fd7b5910578b2a1d664c 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -79,8 +79,10 @@ Atom wm_delete_window_atom;
 
 #define KEY_MASK (KeyPressMask | KeyReleaseMask)
 #define MOUSE_MASK (ButtonPressMask | ButtonReleaseMask | \
-                   PointerMotionMask | ButtonMotionMask )
-#define X_MASK (KEY_MASK | MOUSE_MASK | VisibilityChangeMask | StructureNotifyMask )
+                   PointerMotionMask | ButtonMotionMask)
+#define X_MASK (KEY_MASK | MOUSE_MASK | VisibilityChangeMask | \
+               StructureNotifyMask | FocusChangeMask | EnterWindowMask | \
+               LeaveWindowMask)
 
 
 static qboolean                mouse_avail = true;