[oe-commits] Stanislav Brabec : matchbox-wm: Easy fix for crash when clicking on the app switcher (openedhand#1343).

git version control git at git.openembedded.org
Sat Sep 19 21:32:22 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 103e2071354d88a1fd6ea34469fd972123350b72
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=103e2071354d88a1fd6ea34469fd972123350b72

Author: Stanislav Brabec <utx at penguin.cz>
Date:   Sat Sep 19 21:30:06 2009 +0000

matchbox-wm: Easy fix for crash when clicking on the app switcher (openedhand#1343).

---

 .../matchbox-wm/select-client-crash.patch          |   14 ++++++++++++++
 recipes/matchbox-wm/matchbox-wm_1.2.bb             |    3 ++-
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/recipes/matchbox-wm/matchbox-wm/select-client-crash.patch b/recipes/matchbox-wm/matchbox-wm/select-client-crash.patch
new file mode 100644
index 0000000..0af225b
--- /dev/null
+++ b/recipes/matchbox-wm/matchbox-wm/select-client-crash.patch
@@ -0,0 +1,14 @@
+http://bugzilla.openedhand.com/show_bug.cgi?id=1343
+Index: matchbox-window-manager-1.2/src/select_client.c
+===================================================================
+--- matchbox-window-manager-1.2.orig/src/select_client.c
++++ matchbox-window-manager-1.2/src/select_client.c
+@@ -49,6 +49,8 @@ select_client_new(Wm *w)
+ 
+    if (width == 0 || height == 0) return NULL;
+ 
++   if (w->stack_top_app == NULL) return NULL;
++
+    dbg("%s() got valid size\n", __func__);
+ 
+    button_x = theme_frame_button_get_x_pos(w->mbtheme, FRAME_MAIN, 
diff --git a/recipes/matchbox-wm/matchbox-wm_1.2.bb b/recipes/matchbox-wm/matchbox-wm_1.2.bb
index 36ddae3..afa26e6 100644
--- a/recipes/matchbox-wm/matchbox-wm_1.2.bb
+++ b/recipes/matchbox-wm/matchbox-wm_1.2.bb
@@ -3,10 +3,11 @@ require matchbox-wm.inc
 DEPENDS = "libmatchbox virtual/libx11 libxext libxcomposite libxfixes libxdamage libxrender startup-notification expat gconf gconf-native "
 RDEPENDS = ""
 
-PR ="r4"
+PR ="r5"
 
 SRC_URI = "http://matchbox-project.org/sources/matchbox-window-manager/1.2/matchbox-window-manager-${PV}.tar.bz2 \
            file://configure_fix.patch;patch=1 \
+           file://select-client-crash.patch;patch=1 \
            file://gconf-2.m4 \
            file://kbdconfig"
 





More information about the Openembedded-commits mailing list