mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
Fix segfault when xwayland is disabled
This commit is contained in:
parent
10f3be7384
commit
632759a499
1 changed files with 6 additions and 2 deletions
|
@ -58,8 +58,12 @@ int main(int argc, char **argv) {
|
||||||
#ifndef HAS_XWAYLAND
|
#ifndef HAS_XWAYLAND
|
||||||
ready(NULL, NULL);
|
ready(NULL, NULL);
|
||||||
#else
|
#else
|
||||||
struct wl_listener xwayland_ready = { .notify = ready };
|
if (server.desktop->xwayland != NULL) {
|
||||||
wl_signal_add(&server.desktop->xwayland->events.ready, &xwayland_ready);
|
struct wl_listener xwayland_ready = { .notify = ready };
|
||||||
|
wl_signal_add(&server.desktop->xwayland->events.ready, &xwayland_ready);
|
||||||
|
} else {
|
||||||
|
ready(NULL, NULL);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wl_display_run(server.wl_display);
|
wl_display_run(server.wl_display);
|
||||||
|
|
Loading…
Reference in a new issue