screen: Set a black background for testing purposes

This commit is contained in:
Jasper St. Pierre 2014-06-27 12:38:11 -04:00
parent 203e5335ab
commit ec8ed1dbb0

View File

@ -492,6 +492,17 @@ create_guard_window (Display *xdisplay, MetaScreen *screen)
return guard_window;
}
/* Set a black background on the root window so that we don't
* see confusing old copies of old windows when debugging
* and testing. */
static void
meta_screen_set_background (MetaScreen *screen)
{
XSetWindowBackground (screen->display->xdisplay,
screen->xroot,
BlackPixel);
}
MetaScreen*
meta_screen_new (MetaDisplay *display,
int number,
@ -699,6 +710,7 @@ meta_screen_new (MetaDisplay *display,
reload_monitor_infos (screen);
meta_screen_set_cursor (screen, META_CURSOR_DEFAULT);
meta_screen_set_background (screen);
/* Handle creating a no_focus_window for this screen */
screen->no_focus_window =