summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/client_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/client_menu.c b/openbox/client_menu.c
index a1718407..0d4aa57f 100644
--- a/openbox/client_menu.c
+++ b/openbox/client_menu.c
@@ -121,7 +121,9 @@ static void client_menu_execute(ObMenuEntry *e, guint state, gpointer data,
switch (e->id) {
case CLIENT_ICONIFY:
client_iconify(c, TRUE, FALSE);
- break;
+ /* the client won't be on screen anymore so hide the menu */
+ menu_frame_hide_all();
+ return; /* and don't update */
case CLIENT_RESTORE:
client_maximize(c, FALSE, 0);
break;