diff options
author | nicm <nicm> | 2020-03-20 17:26:14 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-20 17:26:14 +0000 |
commit | 7bbca4939537bcb12d9488cbd0e88fb8bbb5dbc3 (patch) | |
tree | ece4724fea6402215c07b19a53adb1819f306d9b /mode-tree.c | |
parent | a3ff5a9e258e84b76af53a136bf8473ae67a0bcd (diff) | |
download | rtmux-7bbca4939537bcb12d9488cbd0e88fb8bbb5dbc3.tar.gz rtmux-7bbca4939537bcb12d9488cbd0e88fb8bbb5dbc3.tar.bz2 rtmux-7bbca4939537bcb12d9488cbd0e88fb8bbb5dbc3.zip |
Fix positioning of menu in choose modes and a couple of keys in tree mode.
Diffstat (limited to 'mode-tree.c')
-rw-r--r-- | mode-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mode-tree.c b/mode-tree.c index b9fa5f65..843a74bc 100644 --- a/mode-tree.c +++ b/mode-tree.c @@ -847,6 +847,10 @@ mode_tree_display_menu(struct mode_tree_data *mtd, struct client *c, u_int x, mtm->itemdata = mti->itemdata; mtd->references++; + if (x >= (menu->width + 4) / 2) + x -= (menu->width + 4) / 2; + else + x = 0; if (menu_display(menu, 0, NULL, x, y, c, NULL, mode_tree_menu_callback, mtm) != 0) menu_free(menu); |