aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-05 10:02:47 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-05 10:02:47 +0100
commit1f6c00f8ef2faa462ab092f41ada8d44d7358596 (patch)
treef2ebfa83357e2fe24389708673e8ccca5ac39d45
parent63390d2dd65e3294d958b579fbdff365a5eabe76 (diff)
downloadrtmux-1f6c00f8ef2faa462ab092f41ada8d44d7358596.tar.gz
rtmux-1f6c00f8ef2faa462ab092f41ada8d44d7358596.tar.bz2
rtmux-1f6c00f8ef2faa462ab092f41ada8d44d7358596.zip
Only redraw popup on the client it belongs to.
-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;