remove an XXX and passify xprop
authorDana Jansens <danakj@orodu.net>
Fri, 8 Jun 2007 00:39:49 +0000 (00:39 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 8 Jun 2007 00:39:49 +0000 (00:39 +0000)
gui.c

diff --git a/gui.c b/gui.c
index b83ec31..6be4c94 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -137,7 +137,6 @@ void gui_create_taskbar(screen *sc, taskbar *tb)
                             /* parent   */ sc->root,
                             /* x        */ tb->x,
                             /* y        */ tb->y,
-/* XXX Maybe just use scr_width here? */
                             /* width    */ tb->w,
                             /* height   */ tb->h,
                             /* border   */ 0,
@@ -156,6 +155,8 @@ void gui_create_taskbar(screen *sc, taskbar *tb)
 
     /* make sure the WM obays our window position */
     size_hints.flags = PPosition;
+    size_hints.x = tb->x;
+    size_hints.y = tb->y;
     /*XSetWMNormalHints (sc->dd, tb->win, &size_hints); */
     XChangeProperty(sc->dd, tb->win, XA_WM_NORMAL_HINTS, XA_WM_SIZE_HINTS, 32,
                     PropModeReplace, (unsigned char *)&size_hints,