]> Dogcows Code - chaz/openbox/commitdiff
watch out for missing a name
authorDana Jansens <danakj@orodu.net>
Tue, 15 Apr 2003 21:25:21 +0000 (21:25 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 15 Apr 2003 21:25:21 +0000 (21:25 +0000)
openbox/action.c

index 33950daa26d4b5cb39c8448f4d3f359337d0c4d2..2d228423974003ce2118fd5b51b9ae17804a6a53 100644 (file)
@@ -707,8 +707,10 @@ void action_exit(union ActionData *data)
 
 void action_showmenu(union ActionData *data)
 {
-    menu_show(data->showmenu.name, data->showmenu.x, data->showmenu.y,
-              data->showmenu.c);
+    if (data->showmenu.name) {
+        menu_show(data->showmenu.name, data->showmenu.x, data->showmenu.y,
+                  data->showmenu.c);
+    }
 }
 
 static void popup_cycle(Client *c, gboolean hide)
This page took 0.024316 seconds and 4 git commands to generate.