aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/matchbox-wm/matchbox-wm/select-client-crash.patch
blob: 0af225b47135112025a3cf3e7c1c50bd4f441f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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,