wok-6.x diff libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch @ rev 17680
Rollback socat
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Feb 19 12:49:41 2015 -0200 (2015-02-19) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch Thu Feb 19 12:49:41 2015 -0200 1.3 @@ -0,0 +1,23 @@ 1.4 +--- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700 1.5 ++++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700 1.6 +@@ -423,12 +423,15 @@ 1.7 + if ( xevent.xcrossing.mode == NotifyUngrab ) 1.8 + printf("Mode: NotifyUngrab\n"); 1.9 + #endif 1.10 +- if ( this->input_grab == SDL_GRAB_OFF ) { 1.11 +- posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); 1.12 ++ if ( (xevent.xcrossing.mode != NotifyGrab) && 1.13 ++ (xevent.xcrossing.mode != NotifyUngrab) ) { 1.14 ++ if ( this->input_grab == SDL_GRAB_OFF ) { 1.15 ++ posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); 1.16 ++ } 1.17 ++ posted = SDL_PrivateMouseMotion(0, 0, 1.18 ++ xevent.xcrossing.x, 1.19 ++ xevent.xcrossing.y); 1.20 + } 1.21 +- posted = SDL_PrivateMouseMotion(0, 0, 1.22 +- xevent.xcrossing.x, 1.23 +- xevent.xcrossing.y); 1.24 + } 1.25 + break; 1.26 +