add XFree(info), simplify README.md

This commit is contained in:
phillbush 2020-08-23 22:26:23 -03:00
parent f66f4c1823
commit 883ec17fe2
2 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,7 @@
XMenu is a menu utility for X. XMenu is a menu utility for X.
XMenu receives a menu specification in stdin, shows a menu for the user 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. to select one of the options, and outputs the option selected to stdout.
XMenu can be controlled both via mouse and via keyboard. The menu is a XMenu can be controlled both via mouse and via keyboard.
pop-up menu (that is, after selecting an option, the menu disappears).
In order to generate a menu of applications based on .desktop entries, In order to generate a menu of applications based on .desktop entries,
as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu) as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu)

View File

@ -316,6 +316,8 @@ initmonitor(void)
mon.y = info[selmon].y_org; mon.y = info[selmon].y_org;
mon.w = info[selmon].width; mon.w = info[selmon].width;
mon.h = info[selmon].height; mon.h = info[selmon].height;
XFree(info);
} }
if (!pflag) { if (!pflag) {