diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2023-09-09 17:02:55 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2023-09-09 17:02:55 -0400 |
| commit | 88b3a56cd38cf7294fc248e68d48e13716b8dd31 (patch) | |
| tree | 3c99c9e96cdc65744f1e3a97a786a2a21fc02e57 | |
| parent | e05368f43d329fe9a401c1b7b9a03ec31be51484 (diff) | |
sway/server: Fix null pointer crash when Xwayland disabled
| -rw-r--r-- | sway/server.c | 2 |
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 |
