Fixing position in some wms when using -w

This commit is contained in:
phillbush 2020-07-30 16:51:29 -03:00
parent b6cf4847ce
commit c15958bd96
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@ XMenu comes with the following features:
* Submenus (some menu entries can spawn another menu). * Submenus (some menu entries can spawn another menu).
* Separators (menu entries can be separated by a line). * Separators (menu entries can be separated by a line).
* Icons (menu entries can be preceded by an icon image). * Icons (menu entries can be preceded by an icon image).
* X resources support (you don't need to recompile xmenu for configuring it).
## Files ## Files

View File

@ -791,7 +791,7 @@ setupmenu(struct Menu *menu, XClassHint *classh)
XStringListToTextProperty(&title, 1, &wintitle); XStringListToTextProperty(&title, 1, &wintitle);
/* set window manager hints */ /* set window manager hints */
sizeh.flags = PMaxSize | PMinSize; sizeh.flags = USPosition | PMaxSize | PMinSize;
sizeh.min_width = sizeh.max_width = menu->w; sizeh.min_width = sizeh.max_width = menu->w;
sizeh.min_height = sizeh.max_height = menu->h; sizeh.min_height = sizeh.max_height = menu->h;
XSetWMProperties(dpy, menu->win, &wintitle, NULL, NULL, 0, &sizeh, NULL, classh); XSetWMProperties(dpy, menu->win, &wintitle, NULL, NULL, 0, &sizeh, NULL, classh);