mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
[meta_window_hide] make sure the right xwindow gets mapped for live preview
This commit is contained in:
parent
8f8097aa2c
commit
17e12ccb6d
@ -2341,11 +2341,16 @@ meta_window_hide (MetaWindow *window)
|
||||
|
||||
if (!window->mapped)
|
||||
{
|
||||
Window top_level_window;
|
||||
meta_topic (META_DEBUG_WINDOW_STATE,
|
||||
"%s actually needs map\n", window->desc);
|
||||
window->mapped = TRUE;
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user