wok-stable diff libsdl/stuff/sdl-1.2.14-fix-disappearing-cursor.patch @ rev 9923

webalizer: fix deps/bdeps
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue May 17 23:14:08 2011 +0200 (2011-05-17)
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	Tue May 17 23:14:08 2011 +0200
     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,