comparison src/video/x11/SDL_x11events.c @ 4557:4aa31b9207f2 SDL-1.2

Finally fixed bug 894 without breaking bug 716. Yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Jul 2010 00:01:26 -0700
parents 60db3d01cb3a
children
comparison
equal deleted inserted replaced
4554:4deaba8b1b42 4557:4aa31b9207f2
439 if ( xevent.xcrossing.mode == NotifyGrab ) 439 if ( xevent.xcrossing.mode == NotifyGrab )
440 printf("Mode: NotifyGrab\n"); 440 printf("Mode: NotifyGrab\n");
441 if ( xevent.xcrossing.mode == NotifyUngrab ) 441 if ( xevent.xcrossing.mode == NotifyUngrab )
442 printf("Mode: NotifyUngrab\n"); 442 printf("Mode: NotifyUngrab\n");
443 #endif 443 #endif
444 if ( xevent.xcrossing.detail != NotifyInferior ) { 444 if ( (xevent.xcrossing.mode != NotifyGrab) &&
445 if ( this->input_grab == SDL_GRAB_OFF ) { 445 (xevent.xcrossing.mode != NotifyUngrab) &&
446 (xevent.xcrossing.detail != NotifyInferior) ) {
447 if ( this->input_grab == SDL_GRAB_OFF ) {
446 posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); 448 posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
447 } else { 449 } else {
448 posted = SDL_PrivateMouseMotion(0, 0, 450 posted = SDL_PrivateMouseMotion(0, 0,
449 xevent.xcrossing.x, 451 xevent.xcrossing.x,
450 xevent.xcrossing.y); 452 xevent.xcrossing.y);