diff options
| -rw-r--r-- | x-alt-tab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x-alt-tab.c b/x-alt-tab.c index 29a96a0..2ec5ab7 100644 --- a/x-alt-tab.c +++ b/x-alt-tab.c @@ -30,6 +30,7 @@ int main(int argc, char **argv) else XCirculateSubwindowsUp(dpy, DefaultRootWindow(dpy)); + XSync(dpy, True); XQueryTree(dpy, DefaultRootWindow(dpy), &root, &parent, &wins, &nwins); w = wins + nwins - 1; XGetClassHint(dpy, *w, &hint); @@ -38,6 +39,5 @@ int main(int argc, char **argv) } while (attr.width <= 1); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); - XSync(dpy, True); return 0; } |
