- XConfigureWindow(dpy, menu->win, CWHeight | CWX | CWY, &changes);
+ XConfigureWindow(dpy, menu->win, CWWidth | CWHeight | CWX | CWY, &changes);
+
+ /* set window manager size hints */
+ sizeh.flags = PMaxSize | PMinSize;
+ sizeh.min_width = sizeh.max_width = menu->w;
+ sizeh.min_height = sizeh.max_height = menu->h;
+ XSetWMNormalHints(dpy, menu->win, &sizeh);
+
+ /* create pixmap */
+ menu->pixmap = XCreatePixmap(dpy, menu->win, menu->w, menu->h,
+ DefaultDepth(dpy, screen));