aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2013-12-02 14:30:12 +0000
committerokan2013-12-02 14:30:12 +0000
commit1384341ce93769fbdfac062a89bec7d94bd205b9 (patch)
tree1c678d2563a2b6ab6b2371441d6584eefa69c1ae
parent7db17c623fa76598a848daba7f9daa105e4859ea (diff)
downloadcwm-1384341ce93769fbdfac062a89bec7d94bd205b9.tar.gz
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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index 0d0426d..98de3f6 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.94 2013/11/27 16:24:17 okan Exp $
+ * $OpenBSD: xevents.c,v 1.95 2013/12/02 14:30:12 okan Exp $
*/
/*
@@ -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);
+ }
}
}