From 1ba640dfe5b92d45b2fb298165636dc14d7aa8f5 Mon Sep 17 00:00:00 2001 From: Patrick Haller Date: Sat, 26 Feb 2011 16:00:34 +0800 Subject: initial commit --- x-alt-tab.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 x-alt-tab.c (limited to 'x-alt-tab.c') 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 + +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; +} + -- cgit v1.2.3