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:
Tomas Frydrych 2009-04-02 12:25:53 +01:00
parent ae97ccba80
commit 8ccb9e04eb

View File

@ -626,8 +626,7 @@ meta_screen_new (MetaDisplay *display,
screen->vertical_workspaces = FALSE;
screen->starting_corner = META_SCREEN_TOPLEFT;
screen->compositor_data = NULL;
screen->guard_window = create_guard_window (xdisplay, screen);
screen->guard_window = None;
{
XFontStruct *font_info;
@ -884,7 +883,11 @@ meta_screen_manage_all_windows (MetaScreen *screen)
GList *list;
meta_display_grab (screen->display);
if (screen->guard_window == None)
screen->guard_window = create_guard_window (screen->display->xdisplay,
screen);
windows = list_windows (screen);
meta_stack_freeze (screen->stack);