From: rain Date: Mon, 14 Jul 2003 08:23:51 +0000 (+0000) Subject: Fix the event mask so that the gamma is reset when DP loses the focus or X-Git-Tag: xonotic-v0.1.0preview~6529 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a92fb6af0a4c0684e7caca811c8a5db85a19e17a;p=xonotic%2Fdarkplaces.git 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 --- 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;