Re: [dwm] simplification of restack()

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 7 Jun 2007 10:19:29 +0200

On Wed, Jun 06, 2007 at 02:55:23PM +0200, Anydot wrote:
> Some simplification of restack() is possible due to the fact, that
> selected client is same as nexttiled(clients). This is true because of
> focus() calls in places like tagging/untagging, viewing etc.
>
> Diffstat:
> layout.c | 6 ------
> 1 file changed, 6 deletions(-)
>
>
> --
> Premysl "Anydot" Hruby >> http://na.srck.net <<

Content-Description: restackclean.patch
> diff -r 7c556b28f1f6 layout.c
> --- a/layout.c Wed Jun 06 11:43:14 2007 +0200
> +++ b/layout.c Wed Jun 06 13:50:12 2007 +0200
> @@ -174,13 +174,7 @@ restack(void) {
> if(lt->arrange != floating) {
> wc.stack_mode = Below;
> wc.sibling = barwin;
> - if(!sel->isfloating) {
> - XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
> - wc.sibling = sel->win;
> - }
> for(c = nexttiled(clients); c; c = nexttiled(c->next)) {
> - if(c == sel)
> - continue;
> XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
> wc.sibling = c->win;
> }

I can't believe this would work. So I assume you came to the
same conclusion in the meantime, regarding how I understood your
last mail in this thread.

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Thu Jun 07 2007 - 10:19:30 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:03 UTC