aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/server.c b/sway/server.c
index db873dca..ba5c2a0c 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -78,7 +78,7 @@ static bool filter_global(const struct wl_client *client,
const struct wl_global *global, void *data) {
#if HAVE_XWAYLAND
struct wlr_xwayland *xwayland = server.xwayland.wlr_xwayland;
- if (global == xwayland->shell_v1->global) {
+ if (xwayland && global == xwayland->shell_v1->global) {
return xwayland->server != NULL && client == xwayland->server->client;
}
#endif