diff options
author | nicm <nicm> | 2021-08-13 20:04:45 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-13 20:04:45 +0000 |
commit | 63aa96864280ff07f706ebbae302b7c15abb964f (patch) | |
tree | b3c6ebdba9735ca53f40ec59b8b95d1e4ed7a7c4 | |
parent | 7a0cec5ecf0d0a89caaee4a16b629155efe23f22 (diff) | |
download | rtmux-63aa96864280ff07f706ebbae302b7c15abb964f.tar.gz rtmux-63aa96864280ff07f706ebbae302b7c15abb964f.tar.bz2 rtmux-63aa96864280ff07f706ebbae302b7c15abb964f.zip |
Check callback needs to only return 0 (text should be suppressed) if
menu returns 0, otherwise it should check the popup also.
-rw-r--r-- | popup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -162,12 +162,12 @@ popup_check_cb(struct client *c, void *data, u_int px, u_int py) { struct popup_data *pd = data; + if (pd->md != NULL && menu_check_cb(c, pd->md, px, py) == 0) + return (0); if (px < pd->px || px > pd->px + pd->sx - 1) return (1); if (py < pd->py || py > pd->py + pd->sy - 1) return (1); - if (pd->md != NULL) - return (menu_check_cb(c, pd->md, px, py)); return (0); } |