mirror of
https://github.com/swaywm/sway.git
synced 2025-03-19 12:59:32 +00:00
sway/server: Fix null pointer crash when Xwayland disabled
This commit is contained in:
parent
d952ce403e
commit
8edc48f6dd
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ static bool filter_global(const struct wl_client *client,
|
||||||
const struct wl_global *global, void *data) {
|
const struct wl_global *global, void *data) {
|
||||||
#if HAVE_XWAYLAND
|
#if HAVE_XWAYLAND
|
||||||
struct wlr_xwayland *xwayland = server.xwayland.wlr_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;
|
return xwayland->server != NULL && client == xwayland->server->client;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue