From ec73cb29300ef738541ef5f38ee6547bac861d33 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Wed, 4 Aug 2010 21:26:04 +0200 Subject: Stop already known clients trying to map themselves onto the current workspace. --- mcwm.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'mcwm.c') diff --git a/mcwm.c b/mcwm.c index 6faac0e..02ec981 100644 --- a/mcwm.c +++ b/mcwm.c @@ -727,7 +727,18 @@ void newwin(xcb_window_t win) uint16_t width; uint16_t height; struct client *client; - + + if (NULL != findclient(win)) + { + /* + * We know this window from before. It's trying to map itself + * on the current workspace, but since it's unmapped it + * probably belongs on another workspace. We don't like that. + * Silently ignore. + */ + return; + } + /* Get pointer position so we can move the window to the cursor. */ if (!getpointer(screen->root, &pointx, &pointy)) -- cgit v1.2.3