[dwm] killclient and focus

From: Станислав <ginermail_AT_gmail.com>
Date: Fri, 21 Dec 2007 17:48:57 +0300

Hi, All.

DWM remember which client was focused lat. When I close my current
window by modkey+shift+c, focus folow to previous active, but client
dont move to master area. Its not useful.
How can I change dwm source to work it properly?

I have changed dwm.c, but this not the best.

diff -ur dwm-4.7/dwm.c dwm-4.7_gin/dwm.c
--- dwm-4.7/dwm.c 2007-11-21 23:18:41.000000000 +0300
+++ dwm-4.7_gin/dwm.c 2007-12-21 16:49:27.000000000 +0300
@@ -988,6 +988,8 @@
         }
         else
                 XKillClient(dpy, sel->win);
+ focusnext(NULL);
+ zoom(NULL);
 }

 void
Received on Fri Dec 21 2007 - 15:48:58 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:13:26 UTC