aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/popup.c b/popup.c
index f2b9bd11..7eff7c14 100644
--- a/popup.c
+++ b/popup.c
@@ -346,9 +346,8 @@ popup_job_complete_cb(struct job *job)
pd->status = 0;
pd->job = NULL;
- if (pd->flags & POPUP_CLOSEEXIT)
- server_client_clear_overlay(pd->c);
- if ((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0)
+ if ((pd->flags & POPUP_CLOSEEXIT) ||
+ ((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0))
server_client_clear_overlay(pd->c);
}