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 <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2017-10-27 08:17:57 +02:00
committed by Lukas Fleischer
parent e9bddf38e8
commit 012a0e6670
3 changed files with 19 additions and 11 deletions

View File

@@ -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)
{