summaryrefslogtreecommitdiff
path: root/x-alt-tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'x-alt-tab.c')
-rw-r--r--x-alt-tab.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/x-alt-tab.c b/x-alt-tab.c
new file mode 100644
index 0000000..e8d4355
--- /dev/null
+++ b/x-alt-tab.c
@@ -0,0 +1,15 @@
+#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));
+ XSync(dpy, True);
+ return 0;
+}
+