wok diff libsdl/stuff/sdl-1.2.14-fix-disappearing-cursor.patch @ rev 16963
Add iftopcolor
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Jul 30 19:55:20 2014 +0100 (2014-07-30) |
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-disappearing-cursor.patch Wed Jul 30 19:55:20 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +Index: SDL-1.2.14/src/video/x11/SDL_x11events.c 1.5 +=================================================================== 1.6 +--- SDL-1.2.14.orig/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400 1.7 ++++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400 1.8 +@@ -444,8 +444,10 @@ 1.9 + if ( xevent.xcrossing.mode == NotifyUngrab ) 1.10 + printf("Mode: NotifyUngrab\n"); 1.11 + #endif 1.12 +- if ( xevent.xcrossing.detail != NotifyInferior ) { 1.13 +- if ( this->input_grab == SDL_GRAB_OFF ) { 1.14 ++ if ( (xevent.xcrossing.mode != NotifyGrab) && 1.15 ++ (xevent.xcrossing.mode != NotifyUngrab) && 1.16 ++ (xevent.xcrossing.detail != NotifyInferior) ) { 1.17 ++ if ( this->input_grab == SDL_GRAB_OFF ) { 1.18 + posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); 1.19 + } else { 1.20 + posted = SDL_PrivateMouseMotion(0, 0,