Re: [dwm] killclient and focus

From: Stanislav <ginermail_AT_gmail.com>
Date: Fri, 21 Dec 2007 23:39:18 +0300

Anselm R. Garbe пишет:

>
> I doubt what you do is the correct way. First of all you don't
> need to change dwm.c at all for achieving this, you get the same
> behavior as follows from config.h:
>
> { MODKEY|ShiftMask, XK_c, killclient, NULL },
> { MODKEY|ShiftMask, XK_c, focusnext, NULL },
> { MODKEY|ShiftMask, XK_c, zoom, NULL },
>
> However I won't do that. killclient() will politely ask an X
> client to close the window and if that is finished, dwm will
> receive an unmapwindow or destroywindow notification event.
> This will trigger unmanage(), which basicually does similiar
> things which you try to aim, but more correctly, working on the
> focus history stack, thus focussing the really chronically
> previously focussed window.
>
> The way as dwm works in this regard is correct, because it is a
> general purpose mechanism which never breaks in any regard.
>
> Your change will work out badly if you consider a popup window
> being closed using Mod-Shift-c for instance. So I really
> recommend you, don't do it.
>
> Regards,

How can I change this mechanism to "active next by view" instead
"previously focussed window" ?
Received on Fri Dec 21 2007 - 22:10:21 UTC

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