X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=vid_glx.c;h=02911ed859ace7808796cf6a4a4c9742ca233d80;hb=b672d9b762355b3198254915b28273d5a7e34f74;hp=dd7ad346be76ba67b41d3a285e04c04b285d1c0e;hpb=4f65024b01337ca14f72f1a2e62b24352ba2adaf;p=xonotic%2Fdarkplaces.git diff --git a/vid_glx.c b/vid_glx.c index dd7ad346..02911ed8 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include +#include "quakedef.h" + #include #include #include @@ -35,8 +37,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif #include -#include "quakedef.h" - #include "nexuiz.xpm" #include "darkplaces.xpm" @@ -282,7 +282,7 @@ static void IN_Activate (qboolean grab) XGrabKeyboard(vidx11_display, win, False, GrabModeAsync, GrabModeAsync, CurrentTime); mouse_x = mouse_y = 0; - cl_ignoremousemove = true; + cl_ignoremousemoves = 2; vid_usingmouse = true; } } @@ -302,7 +302,7 @@ static void IN_Activate (qboolean grab) if (win) XUndefineCursor(vidx11_display, win); - cl_ignoremousemove = true; + cl_ignoremousemoves = 2; vid_usingmouse = false; } }