On 11/1/07, Ritesh Kumar <[EMAIL PROTECTED]> 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));
}

Reply via email to