wok diff libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch @ rev 11187

gst-python: Compile with $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 03 01:08:09 2011 +0000 (2011-11-03)
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 Nov 03 01:08:09 2011 +0000
     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 +