summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 3448194e..91ba190b 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -438,6 +438,8 @@ static void event_handle_client(Client *client, XEvent *e)
client_unmanage(client);
break;
case MapRequest:
+ if (!client->iconic) break; /* this normal doesn't happen, but if it
+ does, we don't want it! */
if (screen_showing_desktop)
screen_show_desktop(FALSE);
client_iconify(client, FALSE, TRUE);