diff options
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index ba5155d1..a6d249e7 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -885,7 +885,9 @@ static void read_surface_property(struct wlr_xwm *xwm, static void xwayland_surface_handle_commit(struct wl_listener *listener, void *data) { struct wlr_xwayland_surface *xsurface = wl_container_of(listener, xsurface, surface_commit); - wlr_surface_map(xsurface->surface); + if (wlr_surface_has_buffer(xsurface->surface)) { + wlr_surface_map(xsurface->surface); + } } static void xwayland_surface_handle_map(struct wl_listener *listener, void *data) { |