blob: 25976e0848b0f447b1e79980c965b992f02e38ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <X11/Xlib.h>
int main(int argc, char **argv)
{
Display *dpy;
if(!(dpy = XOpenDisplay(0x0))) return 1;
if (argc > 1)
XCirculateSubwindowsDown(dpy, DefaultRootWindow(dpy));
else
XCirculateSubwindowsUp(dpy, DefaultRootWindow(dpy));
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); /* nuke focus back to pointer */
XSync(dpy, True);
return 0;
}
|