浏览代码

add XFree(info), simplify README.md

master
phillbush 5 年前
父节点
当前提交
883ec17fe2
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +1
    -2
      README.md
  2. +2
    -0
      xmenu.c

+ 1
- 2
README.md 查看文件

@@ -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
pop-up menu (that is, after selecting an option, the menu disappears).
XMenu can be controlled both via mouse and via keyboard.


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)


+ 2
- 0
xmenu.c 查看文件

@@ -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) {


正在加载...
取消
保存