From 99f38821894f945326c5ef60af491cdddc3561af Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Tue, 24 Jan 2012 17:52:19 +0200 Subject: rework focusing configured client - still some kind of race condition --- monsterwm.c | 4 ++-- 1 file 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; -- cgit v1.3.1