1
Index: libsdl1.2-1.2.14/src/video/x11/SDL_x11events.c
2
===================================================================
3
--- libsdl1.2-1.2.14.orig/src/video/x11/SDL_x11events.c 2010-04-06 19:29:05.000000000 +0100
4
+++ libsdl1.2-1.2.14/src/video/x11/SDL_x11events.c 2010-04-06 19:29:46.000000000 +0100
6
if ( xevent.xcrossing.mode == NotifyUngrab )
7
printf("Mode: NotifyUngrab\n");
9
- if ( this->input_grab == SDL_GRAB_OFF ) {
10
- posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
11
+ if ( (xevent.xcrossing.mode != NotifyGrab) &&
12
+ (xevent.xcrossing.mode != NotifyUngrab) ) {
13
+ if ( this->input_grab == SDL_GRAB_OFF ) {
14
+ posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
16
+ posted = SDL_PrivateMouseMotion(0, 0,
18
+ xevent.xcrossing.y);
20
- posted = SDL_PrivateMouseMotion(0, 0,
22
- xevent.xcrossing.y);