[PATCH] don't switch view, if _NET_ACTIVE_WINDOW is received.

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Mon, 4 Mar 2013 10:53:53 +0100

this just pulls the tags of the corresponding client
into the current view, so your secondary view is not
lost.
---
 dwm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dwm.c b/dwm.c
index d9443da..0cfc0d1 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -544,8 +544,7 @@ clientmessage(XEvent *e) {
 	}
 	else if(cme->message_type == netatom[NetActiveWindow]) {
 		if(!ISVISIBLE(c)) {
-			c->mon->seltags ^= 1;
-			c->mon->tagset[c->mon->seltags] = c->tags;
+			c->mon->tagset[c->mon->seltags] |= c->tags;
 		}
 		pop(c);
 	}
-- 
1.7.9.5
--------------010404010304040708060306--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Mar 04 2013 - 12:36:02 CET