]> Pileus Git - wmpus/commitdiff
non-wm window debugging
authorAndy Spencer <andy753421@gmail.com>
Fri, 26 Dec 2014 15:06:40 +0000 (15:06 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 26 Dec 2014 15:06:40 +0000 (15:06 +0000)
sys-x11.c

index 740d3cc6388341a6dfc9d2058759118fd066288f..c71fbb95b212d969f6ad87ff38f4b81cdac32094 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -231,9 +231,13 @@ static win_t *win_new(Display *dpy, Window xid)
 {
        Window trans;
        XWindowAttributes attr;
-       if (XGetWindowAttributes(dpy, xid, &attr))
-               if (attr.override_redirect)
+       if (XGetWindowAttributes(dpy, xid, &attr)) {
+               if (attr.override_redirect) {
+                       printf("win_new: x11=(%p,%d) -- override\n",
+                               dpy, (int)xid);
                        return NULL;
+               }
+       }
 
        win_t *win    = new0(win_t);
        win->x        = attr.x;