On Fri, Dec 21, 2007 at 11:39:18PM +0300, Stanislav wrote:
> 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" ?
You are looking for sel->snext during killclient.
Regards,
-- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361Received on Sat Dec 22 2007 - 12:25:12 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:13:53 UTC