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

Up: geany to 1.22.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jun 20 17:19:35 2012 +0000 (2012-06-20)
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 Jun 20 17:19:35 2012 +0000
     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,