mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Merge pull request #432 from acrisci/bug/xwayland-ready-listener
rootston: xwayland ready listener
This commit is contained in:
commit
358654e212
2 changed files with 4 additions and 2 deletions
|
@ -50,6 +50,7 @@ struct roots_desktop {
|
|||
#ifdef HAS_XWAYLAND
|
||||
struct wlr_xwayland *xwayland;
|
||||
struct wl_listener xwayland_surface;
|
||||
struct wl_listener xwayland_ready;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -59,8 +59,9 @@ int main(int argc, char **argv) {
|
|||
ready(NULL, NULL);
|
||||
#else
|
||||
if (server.desktop->xwayland != NULL) {
|
||||
struct wl_listener xwayland_ready = { .notify = ready };
|
||||
wl_signal_add(&server.desktop->xwayland->events.ready, &xwayland_ready);
|
||||
wl_signal_add(&server.desktop->xwayland->events.ready,
|
||||
&server.desktop->xwayland_ready);
|
||||
server.desktop->xwayland_ready.notify = ready;
|
||||
} else {
|
||||
ready(NULL, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue