equal
deleted
inserted
replaced
56 if(old && old != c) |
56 if(old && old != c) |
57 drawtitle(old); |
57 drawtitle(old); |
58 drawtitle(c); |
58 drawtitle(c); |
59 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
59 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
60 XSync(dpy, False); |
60 XSync(dpy, False); |
61 XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, |
|
62 PropModeReplace, (unsigned char *)&c->win, 1); |
|
63 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
61 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
64 } |
62 } |
65 |
63 |
66 void |
64 void |
67 focusnext(Arg *arg) |
65 focusnext(Arg *arg) |
459 XSetErrorHandler(xerror); |
457 XSetErrorHandler(xerror); |
460 XUngrabServer(dpy); |
458 XUngrabServer(dpy); |
461 arrange(NULL); |
459 arrange(NULL); |
462 if(sel) |
460 if(sel) |
463 focus(sel); |
461 focus(sel); |
464 else |
|
465 XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, |
|
466 PropModeReplace, (unsigned char *)NULL, 1); |
|
467 } |
462 } |
468 |
463 |
469 void |
464 void |
470 zoom(Arg *arg) |
465 zoom(Arg *arg) |
471 { |
466 { |