Re: [dwm] clientspertag status message

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Thu, 1 Nov 2007 03:27:20 +0200

On 11/1/07, Ritesh Kumar <ritesh_AT_cs.unc.edu> wrote:
> Currently changing/toggling tags works correctly, however, the window in the
> new view may or may not be focused :(. Any ideas?

you can either raisefocused() or focus(nexttiled(clients)) depending
on what client would you like to be active (sel or top)

a possible raisefocused:

void
raisefocused(void) {
        XEvent ev;
        XWindowChanges wc;

        drawbar();
        if(!sel)
                return;
        if(sel->isfloating || !(ISTILE))
                XRaiseWindow(dpy, sel->win);
        else {
                wc.sibling = barwin;
                wc.stack_mode = Below;
                XConfigureWindow(dpy, sel->win, CWSibling |
CWStackMode, &wc);
        }
        XSync(dpy, False);
        while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
Received on Thu Nov 01 2007 - 02:27:25 UTC

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