about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--xevents.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index f89198c..f111c84 100644
--- a/xevents.c
+++ b/xevents.c
@@ -101,8 +101,10 @@ xev_handle_unmapnotify(XEvent *ee)
 		if (e->send_event) {
 			cc->state = WithdrawnState;
 			xu_set_wm_state(cc->win, cc->state);
-		} else
-			client_hide(cc);
+		} else {
+			if (!(cc->flags & CLIENT_HIDDEN))
+				client_delete(cc);
+		}
 	}
 }