libsdl-x11-1.2.14: fix bug 894
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sun, 5 Sep 2010 23:36:44 +0000 (01:36 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Mon, 6 Sep 2010 15:06:35 +0000 (17:06 +0200)
Wesnoth in-game buttons couldn't be pressed in illume2,
The patch,which comes from the bugreport, fixes that issue

recipes/libsdl/libsdl-x11-1.2.14/sdl_bug_894_fix.patch [new file with mode: 0644]
recipes/libsdl/libsdl-x11_1.2.14.bb

diff --git a/recipes/libsdl/libsdl-x11-1.2.14/sdl_bug_894_fix.patch b/recipes/libsdl/libsdl-x11-1.2.14/sdl_bug_894_fix.patch
new file mode 100644 (file)
index 0000000..1fe0241
--- /dev/null
@@ -0,0 +1,15 @@
+--- SDL-1.2.14/src/video/x11/SDL_x11events.c   2009-10-12 16:07:15.000000000 -0700
++++ SDL-1.2/src/video/x11/SDL_x11events.c      2010-07-19 23:57:48.365397095 -0700
+@@ -441,8 +441,10 @@
+ if ( xevent.xcrossing.mode == NotifyUngrab )
+ printf("Mode: NotifyUngrab\n");
+ #endif
+-              if ( xevent.xcrossing.detail != NotifyInferior ) {
+-                      if ( this->input_grab == SDL_GRAB_OFF ) {
++              if ( (xevent.xcrossing.mode != NotifyGrab) &&
++                   (xevent.xcrossing.mode != NotifyUngrab) &&
++                   (xevent.xcrossing.detail != NotifyInferior) ) {
++                              if ( this->input_grab == SDL_GRAB_OFF ) {
+                               posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
+                       } else {
+                               posted = SDL_PrivateMouseMotion(0, 0,
index 36159fb..4c84d99 100644 (file)
@@ -8,11 +8,12 @@ LICENSE = "LGPL"
 DEPENDS = "alsa-lib virtual/libgl virtual/libx11 libxext tslib"
 DEPENDS_avr32 = "alsa-lib virtual/libx11 libxext tslib"
 PROVIDES = "virtual/libsdl"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = " \
   http://www.libsdl.org/release/SDL-${PV}.tar.gz \
   file://libtool-update.patch \
+  file://sdl_bug_894_fix.patch \
   file://sdl.m4 \
 "