summaryrefslogtreecommitdiff
path: root/hw/xwayland/xwayland-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwayland/xwayland-window.c')
-rw-r--r--hw/xwayland/xwayland-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c
index 84291c622..c2bd792e4 100644
--- a/hw/xwayland/xwayland-window.c
+++ b/hw/xwayland/xwayland-window.c
@@ -1351,6 +1351,9 @@ xwl_window_update_surface_window(struct xwl_window *xwl_window)
if (!RegionEqual(&window->winSize, &surface_window->winSize))
break;
+ if (!window->mapped)
+ break;
+
/* The surface window must be top-level for its window pixmap */
window_pixmap = screen->GetWindowPixmap(window);
if (window_pixmap == surface_pixmap)