From 17230d33c1af342bd93fc697becb7d8dcf778c61 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 2 Jun 2023 22:44:21 +0300 Subject: xwm: check for a buffer before mapping --- xwayland/xwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xwayland') 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) { -- cgit v1.2.3