From 3f8927d597f943515f9dc15fd0510111c241de6f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 2 Aug 2012 10:24:41 +0200 Subject: [PATCH] fix USEDGA sendevent blocking :P --- vid_glx.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index fc9f0038..aea58ff5 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -611,7 +611,7 @@ static void HandleEvents(void) case MotionNotify: // mouse moved - if (vid_usingmouse) + if (vid_usingmouse && !event.xmotion.send_event) { #ifdef USEDGA if (vid_usingdgamouse) @@ -622,14 +622,11 @@ static void HandleEvents(void) else #endif { - if (!event.xmotion.send_event) - { - in_mouse_x += event.xmotion.x - in_windowmouse_x; - in_mouse_y += event.xmotion.y - in_windowmouse_y; - //if (abs(vid.width/2 - event.xmotion.x) + abs(vid.height/2 - event.xmotion.y)) - if (vid_stick_mouse.integer || abs(vid.width/2 - event.xmotion.x) > vid.width / 4 || abs(vid.height/2 - event.xmotion.y) > vid.height / 4) - dowarp = true; - } + in_mouse_x += event.xmotion.x - in_windowmouse_x; + in_mouse_y += event.xmotion.y - in_windowmouse_y; + //if (abs(vid.width/2 - event.xmotion.x) + abs(vid.height/2 - event.xmotion.y)) + if (vid_stick_mouse.integer || abs(vid.width/2 - event.xmotion.x) > vid.width / 4 || abs(vid.height/2 - event.xmotion.y) > vid.height / 4) + dowarp = true; } } in_windowmouse_x = event.xmotion.x; -- 2.39.2