comparison src/video/x11/SDL_x11events.c @ 496:864a66f028d8

Don't be fooled by unclutter - the mouse isn't really leaving our window
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Sep 2002 07:09:04 +0000
parents ac59b067815b
children b8d311d90021
comparison
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,