[add helper program for forcing a window to be visible
timo.lindfors@iki.fi**20100927185634] {
hunk ./Makefile 3
+	gcc -o sido-show-window sido-show-window.c -lX11 -Wall -g
hunk ./Makefile 5
-	rm sido-run
+	rm -f sido-run
+	rm -f sido-show-window
hunk ./Makefile 14
+	install -D sido-show-window $(DESTDIR)/usr/lib/sido/sido-show-window
addfile ./sido-show-window.c
hunk ./sido-show-window.c 1
+// gcc show-window.c -o show-window -lX11 -Wall -g
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <X11/Xlib.h>
+#include <X11/Xlibint.h>
+
+int main(int argc, char *argv[]) {
+    int ret;
+    Display *dpy;
+    XSetWindowAttributes attr;
+    unsigned long window;
+
+    assert(argc == 2);
+    window = strtoul(argv[1], NULL, 16);
+    assert(window > 0);
+    
+    dpy = XOpenDisplay(NULL);
+    assert(dpy);
+
+    attr.override_redirect = True;
+    ret = XChangeWindowAttributes(dpy,
+                                  window,
+                                  CWOverrideRedirect,
+                                  &attr);
+    assert(ret);
+
+    ret = XMapWindow(dpy,
+                     window);
+    assert(ret);
+
+    ret = XRaiseWindow(dpy,
+                       window);
+    assert(ret);
+
+    ret = XMoveResizeWindow(dpy,
+                            window,
+                            152,
+                            81,
+                            702,
+                            411);
+    assert(ret);
+
+    ret = XSetInputFocus(dpy,
+                         window,
+                         RevertToParent,
+                         CurrentTime);
+    assert(ret);
+    
+    XCloseDisplay(dpy);
+    
+    
+    return 0;
+}
+
}
