aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 15:41:54 +0000
committernicm <nicm>2020-05-16 15:41:54 +0000
commit469eda7e44fe6d502c976ebc34bbd97e6c6ed3e5 (patch)
tree7c96ab750b960aa5bdce3fb26dc3849fab3f8689 /popup.c
parent4e053685df9f4d1c398148712ab0529a7e9d32e7 (diff)
downloadrtmux-469eda7e44fe6d502c976ebc34bbd97e6c6ed3e5.tar.gz
rtmux-469eda7e44fe6d502c976ebc34bbd97e6c6ed3e5.tar.bz2
rtmux-469eda7e44fe6d502c976ebc34bbd97e6c6ed3e5.zip
Only redraw popup on the client it belongs to.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/popup.c b/popup.c
index 9937d586..4b47df2b 100644
--- a/popup.c
+++ b/popup.c
@@ -70,8 +70,10 @@ popup_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
{
struct popup_data *pd = ttyctx->arg;
+ if (c != pd->c)
+ return (0);
if (pd->c->flags & CLIENT_REDRAWOVERLAY)
- return (-1);
+ return (0);
ttyctx->bigger = 0;
ttyctx->wox = 0;