From c15958bd964018bc17969fc1d8be5471831de7f3 Mon Sep 17 00:00:00 2001 From: phillbush Date: Thu, 30 Jul 2020 16:51:29 -0300 Subject: [PATCH] Fixing position in some wms when using -w --- README.md | 5 +++-- xmenu.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 41349ed..12ffb11 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@

- + # XMenu - + XMenu is a menu utility for X. XMenu receives a menu specification in stdin, shows a menu for the user to select one of the options, and outputs the option selected to stdout. @@ -22,6 +22,7 @@ XMenu comes with the following features: * Submenus (some menu entries can spawn another menu). * Separators (menu entries can be separated by a line). * Icons (menu entries can be preceded by an icon image). +* X resources support (you don't need to recompile xmenu for configuring it). ## Files diff --git a/xmenu.c b/xmenu.c index bc66235..0d964e0 100644 --- a/xmenu.c +++ b/xmenu.c @@ -791,7 +791,7 @@ setupmenu(struct Menu *menu, XClassHint *classh) XStringListToTextProperty(&title, 1, &wintitle); /* set window manager hints */ - sizeh.flags = PMaxSize | PMinSize; + sizeh.flags = USPosition | PMaxSize | PMinSize; sizeh.min_width = sizeh.max_width = menu->w; sizeh.min_height = sizeh.max_height = menu->h; XSetWMProperties(dpy, menu->win, &wintitle, NULL, NULL, 0, &sizeh, NULL, classh); -- 2.20.1