diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-24 17:52:19 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-24 17:52:19 +0200 |
| commit | 99f38821894f945326c5ef60af491cdddc3561af (patch) | |
| tree | fbce2145192b11ee36a5508aa9dc926b4309f972 /monsterwm.c | |
| parent | 9dc2f103491805c7760aee1170a14b498069ceeb (diff) | |
rework focusing configured client - still some kind of race condition
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 4 |
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; |
