Re: [dwm] Monocle patch for dwm-4.2

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Thu, 7 Jun 2007 21:29:08 +0200

On 6/7/07, Anydot <dfenze_AT_gmail.com> wrote:
> With latest (tipmost) changes in restack() I contributed, flicker goes
> away too. To the time, it's most clean solution to this flicker problem.
> Try it and you will se ;)
ok nice
it restacks every tiled window below the focused one, my solution
restacks every floating window on top of the stack and raises the
focused separately

separating the raisefocused and raisefloating introduces a bit more
complexity+SLOC in my code but it saves a few cpu cycles i guess ;)

> btw, can you post me your patch with mentioned functions?
>

umm my dwm patch would be huge
here is raisefloating() which is only called in non-floating
layout->arrange() functions
raisefocus() is called in event.c, client.c and in layout.c as it was
in your restackless patch

void
raisefloating(void) {
        Client *c;
        XEvent ev;
        
        if (!sel)
                return;
        if (lt->arrange != floating)
                for(c = clients; c; c = c->next)
                        if(c->isfloating)
                                XRaiseWindow(dpy, c->win);
        XSync(dpy, False);
        while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
Received on Thu Jun 07 2007 - 21:29:10 UTC

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