diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-11 16:01:13 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-11 16:01:13 +0100 |
commit | aff2a473ec3c16396d6be9d61c5e5dc1201a725b (patch) | |
tree | 828bc514fff183f468c2f509bf509ea6042cdaa7 /menu.c | |
parent | af82106fae823f55fd3c746e1b48bc8e52a55e68 (diff) | |
parent | b8581ec80e5339be5e2c08cfec70a77f21ba06b2 (diff) | |
download | rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.gz rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.bz2 rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -140,17 +140,16 @@ menu_mode_cb(__unused struct client *c, void *data, __unused u_int *cx, return (&md->s); } -int -menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py) +/* Return parts of the input range which are not obstructed by the menu. */ +void +menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py, + u_int nx, struct overlay_ranges *r) { struct menu_data *md = data; struct menu *menu = md->menu; - if (px < md->px || px > md->px + menu->width + 3) - return (1); - if (py < md->py || py > md->py + menu->count + 1) - return (1); - return (0); + server_client_overlay_range(md->px, md->py, menu->width + 4, + menu->count + 2, px, py, nx, r); } void |