diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2023-06-03 07:43:13 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2023-06-03 07:43:13 +0300 |
| commit | 6053ec41267116e9e588e00c36787ee7f3f73d04 (patch) | |
| tree | 1eb60036b676bd922551a9bb260244ea469ea625 | |
| parent | fdb65cc7816962ec2fdc48e675b042bce611a6d2 (diff) | |
xwayland: fix mapped state check in OR handlers
| -rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index bb4340f1..a52cf4ad 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c @@ -178,7 +178,7 @@ static void unmanaged_handle_override_redirect(struct wl_listener *listener, voi wl_container_of(listener, surface, override_redirect); struct wlr_xwayland_surface *xsurface = surface->wlr_xwayland_surface; - bool mapped = xsurface->surface != NULL || xsurface->surface->mapped; + bool mapped = xsurface->surface != NULL && xsurface->surface->mapped; if (mapped) { unmanaged_handle_unmap(&surface->unmap, NULL); } @@ -537,7 +537,7 @@ static void handle_override_redirect(struct wl_listener *listener, void *data) { struct sway_view *view = &xwayland_view->view; struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; - bool mapped = xsurface->surface != NULL || xsurface->surface->mapped; + bool mapped = xsurface->surface != NULL && xsurface->surface->mapped; if (mapped) { handle_unmap(&xwayland_view->unmap, NULL); } |
