/* Show window, draw it to screen if parent is visible. 
This function maps a window to its parent. Mapping means that the window will be visible and drawn if the parent is visible, unless obscured by other windows of course. */
void win_show(struct win_window *win)
/* Show window, draw it to screen if parent is visible. 
This function maps a window to its parent. Mapping means that the window will be visible and drawn if the parent is visible, unless obscured by other windows of course. */
void win_show(struct win_window *win)
{
	Assert(win != NULL);
	if (win->is_mapped) {
		return;
	}
	win->is_mapped = true;
	win_redraw(win);
}