]> Dogcows Code - chaz/openbox/blobdiff - openbox/client_menu.c
dont iconify if you can't
[chaz/openbox] / openbox / client_menu.c
index acb525300ad181f436817e648eebf33919fb00d0..11e31965d68f5ce5a7e792af193c5eb71b86e029 100644 (file)
@@ -173,15 +173,8 @@ static void desktop_change_callback(ObClient *c, gpointer data)
 {
     ObMenuFrame *frame = data;
     if (c == frame->client) {
-        /* adding/removing entries while it's shown is not fun, so just hide
-         the menu and reshow it */
-        if (frame->parent) {
-            ObMenuEntryFrame *me = frame->parent_entry;
-            ObMenuFrame *parent = frame->parent;
-            menu_frame_select(parent, NULL, TRUE);
-            menu_frame_select(parent, me, TRUE);
-        } else
-            menu_frame_hide(frame);
+        /* the client won't even be on the screen anymore, so hide the menu */
+        menu_frame_hide_all();
     }
 }
 
This page took 0.020991 seconds and 4 git commands to generate.