From a92fb6af0a4c0684e7caca811c8a5db85a19e17a Mon Sep 17 00:00:00 2001 From: rain Date: Mon, 14 Jul 2003 08:23:51 +0000 Subject: [PATCH] Fix the event mask so that the gamma is reset when DP loses the focus or the pointer leaves the window. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3272 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index 27f89f92..4a5e0417 100644 --- 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; -- 2.39.2