Skip to content

Commit

Permalink
topwin: redraw the window after mark as activate
Browse files Browse the repository at this point in the history
Fix a regression after RTGUI_ONLY_DRAW_ACTIVE_WIN enabled.
  • Loading branch information
grissiom committed Jan 23, 2015
1 parent c476da6 commit 3944612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/rtgui/server/topwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,6 @@ rt_err_t rtgui_topwin_hide(struct rtgui_event_win *event)
/* update clip info */
rtgui_topwin_update_clip();

/* redraw the old rect */
rtgui_topwin_redraw(&(topwin->extent));

if (topwin->flag & WINTITLE_MODALING)
{
topwin->flag &= ~WINTITLE_MODALING;
Expand All @@ -662,6 +659,9 @@ rt_err_t rtgui_topwin_hide(struct rtgui_event_win *event)

topwin->flag &= ~WINTITLE_ACTIVATE;

/* redraw the old rect */
rtgui_topwin_redraw(&(topwin->extent));

return RT_EOK;
}

Expand Down

0 comments on commit 3944612

Please sign in to comment.