[meta_window_hide] make sure the right xwindow gets mapped for live preview

This commit is contained in:
Robert Bragg 2008-11-04 14:55:46 +00:00
parent 8f8097aa2c
commit 17e12ccb6d

View File

@ -2341,11 +2341,16 @@ meta_window_hide (MetaWindow *window)
if (!window->mapped) if (!window->mapped)
{ {
Window top_level_window;
meta_topic (META_DEBUG_WINDOW_STATE, meta_topic (META_DEBUG_WINDOW_STATE,
"%s actually needs map\n", window->desc); "%s actually needs map\n", window->desc);
window->mapped = TRUE; window->mapped = TRUE;
meta_error_trap_push (window->display); meta_error_trap_push (window->display);
XMapWindow (window->display->xdisplay, window->xwindow); if (window->frame)
top_level_window = window->frame->xwindow;
else
top_level_window = window->xwindow;
XMapWindow (window->display->xdisplay, top_level_window);
meta_error_trap_pop (window->display, FALSE); meta_error_trap_pop (window->display, FALSE);
} }