aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-03-01 03:37:00 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-03-01 04:57:03 +0200
commit53e02b7b6543f7fca0bd0fab4d3bf97773cc9ba7 (patch)
tree36a2a1ce66fa6ee4acbf89ba242a24f1f42210dd /monsterwm.c
parent6eb39f84c7d6334c01b38fda7118ffbfaae46f61 (diff)
active window is always the current window
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 41b05da..55ecf04 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -299,9 +299,8 @@ void clientmessage(XEvent *e) {
&& ((unsigned)e->xclient.data.l[1] == netatoms[NET_FULLSCREEN]
|| (unsigned)e->xclient.data.l[2] == netatoms[NET_FULLSCREEN]))
setfullscreen(c, (e->xclient.data.l[0] == 1 || (e->xclient.data.l[0] == 2 && !c->isfullscrn)));
- else if (c && e->xclient.message_type == netatoms[NET_ACTIVE]) current = c;
tile();
- update_current(current);
+ update_current(c);
}
/* a configure request means that the window requested changes in its geometry