From 1f6c00f8ef2faa462ab092f41ada8d44d7358596 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 5 May 2020 10:02:47 +0100 Subject: Only redraw popup on the client it belongs to. --- popup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'popup.c') 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; -- cgit