graphics/nxbe/nxbe_setvisibility.c: Fix a missed redraw command in last NX visibility changes.

This commit is contained in:
Gregory Nutt
2019-05-06 12:04:48 -06:00
parent 49b2b74105
commit 8cc0d2fc15
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -65,7 +65,7 @@
/* Server flags and helper macros:
*
* NXBE_STATE_MODAL - One window is in a focused, modal state
* NXBE_STATE_MODAL - One window is in a focused, modal state
*/
#define NXBE_STATE_MODAL (1 << 0) /* Bit 0: One window is in a focused,
+8 -4
View File
@@ -68,6 +68,10 @@ void nxbe_show_window(FAR struct nxbe_window_s *wnd)
{
FAR struct nxbe_state_s *be = wnd->be;
/* Mark the window no longer hidden */
NXBE_CLRHIDDEN(wnd);
/* Restore the window to the top of the hierarchy. Exception: If the top
* window is a modal window, then only raise it to second highest.
*/
@@ -82,6 +86,10 @@ void nxbe_show_window(FAR struct nxbe_window_s *wnd)
wnd->below = be->topwnd->below;
be->topwnd->below = wnd;
/* Redraw this window and the other that are below us */
nxbe_redrawbelow(be, wnd, &wnd->bounds);
}
else
{
@@ -99,10 +107,6 @@ void nxbe_show_window(FAR struct nxbe_window_s *wnd)
nxmu_redrawreq(wnd, &wnd->bounds);
}
/* Mark the window no longer hidden */
NXBE_CLRHIDDEN(wnd);
}
/****************************************************************************