[maemo-commits] [maemo-commits] r19496 - in projects/haf/trunk/libsdl1.2/debian: . patches

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Nov 16 11:04:36 EET 2009
Author: aendrodi
Date: 2009-11-16 11:04:09 +0200 (Mon, 16 Nov 2009)
New Revision: 19496

Added:
   projects/haf/trunk/libsdl1.2/debian/patches/350_nc_friendship.diff
Modified:
   projects/haf/trunk/libsdl1.2/debian/changelog
   projects/haf/trunk/libsdl1.2/debian/patches/series
Log:
patch


Modified: projects/haf/trunk/libsdl1.2/debian/changelog
===================================================================
--- projects/haf/trunk/libsdl1.2/debian/changelog	2009-11-12 09:26:45 UTC (rev 19495)
+++ projects/haf/trunk/libsdl1.2/debian/changelog	2009-11-16 09:04:09 UTC (rev 19496)
@@ -1,3 +1,16 @@
+libsdl1.2 (1:1.2.13-2maemo7) unstable; urgency=low
+
+  * debian/patches/350_nc_friendship.diff
+    + Added (Adam Endrodi)
+    + Makes SDL fullscreen windows friendly with non-composited mode.
+      Now that all fullscreen windows are non-composited by default
+      we started to receive a LeaveNotify, Expose, EnterNotify series
+      of events, but unfortunately the games quit at the first sight
+      of the LeaveNotify, making them unenjoyable.  This patch ignores
+      these events.
+
+ -- Adam Endrodi <adam.endrodi at blumsoft.eu>  Mon, 16 Nov 2009 10:55:45 +0200
+
 libsdl1.2 (1:1.2.13-2maemo6) unstable; urgency=low
 
   * debian/patches/340_fs_notor.diff

Added: projects/haf/trunk/libsdl1.2/debian/patches/350_nc_friendship.diff
===================================================================
--- projects/haf/trunk/libsdl1.2/debian/patches/350_nc_friendship.diff	2009-11-12 09:26:45 UTC (rev 19495)
+++ projects/haf/trunk/libsdl1.2/debian/patches/350_nc_friendship.diff	2009-11-16 09:04:09 UTC (rev 19496)
@@ -0,0 +1,14 @@
+Ignore the momentary LeaveNotify we get because of the underlying window hierarchy
+changes when we're switched to non-composited mode by the window manager.
+
+diff --exclude .svn -ru sdl.faszom/src/events/x11/SDL_x11events.c sdl/src/events/x11/SDL_x11events.c
+--- sdl.faszom/src/video/x11/SDL_x11events.c.orig	2009-11-16 10:47:35.000000000 +0200
++++ sdl/src/video/x11/SDL_x11events.c	2009-11-16 10:48:06.000000000 +0200
+@@ -446,6 +446,7 @@
+ #endif
+ 		if ( (xevent.xcrossing.mode != NotifyGrab) &&
+ 		     (xevent.xcrossing.mode != NotifyUngrab) &&
++		     (xevent.xcrossing.detail != NotifyNonlinear) &&
+ 		     (xevent.xcrossing.detail != NotifyInferior) ) {
+ 			if ( this->input_grab == SDL_GRAB_OFF ) {
+ 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);

Modified: projects/haf/trunk/libsdl1.2/debian/patches/series
===================================================================
--- projects/haf/trunk/libsdl1.2/debian/patches/series	2009-11-12 09:26:45 UTC (rev 19495)
+++ projects/haf/trunk/libsdl1.2/debian/patches/series	2009-11-16 09:04:09 UTC (rev 19496)
@@ -24,3 +24,4 @@
 320_no_fullscreen_grab.diff
 330_pulseaudio_tease.diff
 340_fs_notor.diff
+350_nc_friendship.diff

More information about the maemo-commits mailing list