summaryrefslogtreecommitdiff
path: root/hw/xwayland/xwayland-shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwayland/xwayland-shm.c')
-rw-r--r--hw/xwayland/xwayland-shm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/xwayland/xwayland-shm.c b/hw/xwayland/xwayland-shm.c
index 1022c0d70..7072be4bc 100644
--- a/hw/xwayland/xwayland-shm.c
+++ b/hw/xwayland/xwayland-shm.c
@@ -279,9 +279,11 @@ xwl_shm_create_screen_resources(ScreenPtr screen)
if (!ret)
return ret;
- if (xwl_screen->rootless)
+ if (xwl_screen->rootless) {
screen->devPrivate =
fbCreatePixmap(screen, 0, 0, screen->rootDepth, 0);
+ SetRootClip(screen, FALSE);
+ }
else
screen->devPrivate =
xwl_shm_create_pixmap(screen, screen->width, screen->height,