src/video/x11/SDL_x11events.c
changeset 496 864a66f028d8
parent 412 ac59b067815b
child 769 b8d311d90021
equal deleted inserted replaced
495:4503f9475cf2 496:864a66f028d8
   194 printf("Mode: NotifyGrab\n");
   194 printf("Mode: NotifyGrab\n");
   195 if ( xevent.xcrossing.mode == NotifyUngrab )
   195 if ( xevent.xcrossing.mode == NotifyUngrab )
   196 printf("Mode: NotifyUngrab\n");
   196 printf("Mode: NotifyUngrab\n");
   197 #endif
   197 #endif
   198 		if ( (xevent.xcrossing.mode != NotifyGrab) &&
   198 		if ( (xevent.xcrossing.mode != NotifyGrab) &&
   199 		     (xevent.xcrossing.mode != NotifyUngrab) ) {
   199 		     (xevent.xcrossing.mode != NotifyUngrab) &&
       
   200 		     (xevent.xcrossing.detail != NotifyInferior) ) {
   200 			if ( this->input_grab == SDL_GRAB_OFF ) {
   201 			if ( this->input_grab == SDL_GRAB_OFF ) {
   201 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
   202 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
   202 			} else {
   203 			} else {
   203 				posted = SDL_PrivateMouseMotion(0, 0,
   204 				posted = SDL_PrivateMouseMotion(0, 0,
   204 						xevent.xcrossing.x,
   205 						xevent.xcrossing.x,