diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-06-02 22:44:21 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-06-02 22:44:21 +0300 |
commit | 17230d33c1af342bd93fc697becb7d8dcf778c61 (patch) | |
tree | 94bc0189cc4d56dfc234afdc9000334df847411d /xwayland/xwm.c | |
parent | d086ee1b9e69f8777f9b84ee254d08be96d4cc34 (diff) |
xwm: check for a buffer before mapping
Diffstat (limited to 'xwayland/xwm.c')
-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) { |