diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-06-16 16:01:08 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-06-16 16:01:08 +0100 |
commit | 89fe2680a9fdbdda3674851e61fd96c76ea923c2 (patch) | |
tree | 902a150b5f818a83e9b11bb22f1a902e30cdf5c1 | |
parent | 42358cc5210422826c8215a4411ddde1d19ddbeb (diff) | |
parent | 7cee982f909d29e7331d35bd9c21d337688b9ea1 (diff) | |
download | rtmux-89fe2680a9fdbdda3674851e61fd96c76ea923c2.tar.gz rtmux-89fe2680a9fdbdda3674851e61fd96c76ea923c2.tar.bz2 rtmux-89fe2680a9fdbdda3674851e61fd96c76ea923c2.zip |
Merge branch 'obsd-master'
-rw-r--r-- | menu.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -160,11 +160,16 @@ menu_free(struct menu *menu) } struct screen * -menu_mode_cb(__unused struct client *c, void *data, __unused u_int *cx, - __unused u_int *cy) +menu_mode_cb(__unused struct client *c, void *data, u_int *cx, u_int *cy) { struct menu_data *md = data; + *cx = md->px + 2; + if (md->choice == -1) + *cy = md->py; + else + *cy = md->py + 1 + md->choice; + return (&md->s); } |