Postpone creation of the guard window until we are ready to manage windows.
Creating the gard window when constructing MetaScreen causes the screen to go black for the duration of Metacity startup which is uggly. We do not actually need that window until we are ready to manage windows on the screen.
This commit is contained in:
parent
ae97ccba80
commit
8ccb9e04eb
@ -626,8 +626,7 @@ meta_screen_new (MetaDisplay *display,
|
|||||||
screen->vertical_workspaces = FALSE;
|
screen->vertical_workspaces = FALSE;
|
||||||
screen->starting_corner = META_SCREEN_TOPLEFT;
|
screen->starting_corner = META_SCREEN_TOPLEFT;
|
||||||
screen->compositor_data = NULL;
|
screen->compositor_data = NULL;
|
||||||
|
screen->guard_window = None;
|
||||||
screen->guard_window = create_guard_window (xdisplay, screen);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
XFontStruct *font_info;
|
XFontStruct *font_info;
|
||||||
@ -885,6 +884,10 @@ meta_screen_manage_all_windows (MetaScreen *screen)
|
|||||||
|
|
||||||
meta_display_grab (screen->display);
|
meta_display_grab (screen->display);
|
||||||
|
|
||||||
|
if (screen->guard_window == None)
|
||||||
|
screen->guard_window = create_guard_window (screen->display->xdisplay,
|
||||||
|
screen);
|
||||||
|
|
||||||
windows = list_windows (screen);
|
windows = list_windows (screen);
|
||||||
|
|
||||||
meta_stack_freeze (screen->stack);
|
meta_stack_freeze (screen->stack);
|
||||||
|
Loading…
Reference in New Issue
Block a user