aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-24 17:52:19 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-24 17:52:19 +0200
commit99f38821894f945326c5ef60af491cdddc3561af (patch)
treefbce2145192b11ee36a5508aa9dc926b4309f972
parent9dc2f103491805c7760aee1170a14b498069ceeb (diff)
rework focusing configured client - still some kind of race condition
-rw-r--r--monsterwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 19a8908..e656ab3 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -343,10 +343,10 @@ void configurerequest(XEvent *e) {
XSync(dis, False);
}
tile();
- update_current(c?c:current);
+ if (c && c == current) update_current(c);
}
-/* send the given event - WM_DELETE_WINDOW for now */
+/* close the window */
void deletewindow(Window w) {
XEvent ev;
ev.type = ClientMessage;