Commit 917e5973 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

compositor: try to use root window background

parent c938a9cf
......@@ -844,6 +844,35 @@ root_tile (MetaScreen *screen)
}
}
if (!pixmap)
{
int width;
int height;
meta_screen_get_size (screen, &width, &height);
pixmap = XCreatePixmap (xdisplay, xroot, width, height,
DefaultDepth (xdisplay, screen_number));
if (pixmap)
{
XGCValues gcv;
GC gc;
gcv.graphics_exposures = False;
gcv.subwindow_mode = IncludeInferiors;
gc = XCreateGC (xdisplay, xroot,
GCGraphicsExposures | GCSubwindowMode,
&gcv);
XCopyArea (xdisplay, xroot, pixmap, gc, 0, 0, width, height, 0, 0);
XSync (xdisplay, False);
XFreeGC (xdisplay, gc);
}
}
if (!pixmap)
{
pixmap = XCreatePixmap (xdisplay, xroot, 1, 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment