summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-12-02 14:30:12 +0000
committerokan <okan>2013-12-02 14:30:12 +0000
commit6b72168d9243bed163cd90d6271b5df7d151f6e8 (patch)
tree31c7fdad6cd4d6437bc299e1aab87796e08bb8f3
parent5e67a12262c061ecabc03e1cd73fdbb5c3c00196 (diff)
downloadcwm-6b72168d9243bed163cd90d6271b5df7d151f6e8.tar.gz
cwm-6b72168d9243bed163cd90d6271b5df7d151f6e8.tar.xz
cwm-6b72168d9243bed163cd90d6271b5df7d151f6e8.zip
Since we use IconicState as our hidden state, check for the hidden flag
and unmanage the client if we're not hidden (basically if NormalState)
during an UnmapNotify event.

Resolves an issue with mplayer going fullscreen while not using NetWM
hints; behaviour regression reported by Ido Admon.
-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);
+		}
 	}
 }