From 012a0e6670533911d70f47533e064969c7fc3b65 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 27 Oct 2017 08:17:57 +0200 Subject: Fix multiple popup windows The window was not deleted if an "already in use"-key was detected, and a new one was created as the loop was reentered. Create/delete of the popup are moved outside the loop. A redrawwin() call is needed to have the window displayed again. Signed-off-by: Lukas Fleischer --- src/wins.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/wins.c') diff --git a/src/wins.c b/src/wins.c index d86b168..5a28dc7 100644 --- a/src/wins.c +++ b/src/wins.c @@ -163,6 +163,17 @@ int wins_doupdate(void) return rc; } +int wins_redrawwin(WINDOW *win) +{ + int rc; + + SCREEN_ACQUIRE; + rc = redrawwin(win); + SCREEN_RELEASE; + + return rc; +} + /* Get the current layout. */ int wins_layout(void) { -- cgit v1.2.3-54-g00ecf