aboutsummaryrefslogtreecommitdiff
path: root/rootston/main.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-19 17:56:26 +0100
committeremersion <contact@emersion.fr>2017-11-19 17:56:26 +0100
commit76e8e1a6ad8ac3947b568bec32b7ed0acd69bef1 (patch)
tree38dc0e63ef48806ea7ec88cbb08cae2b3d08aa44 /rootston/main.c
parent72d877658aaf309eb066e3b9825c5f59177b15c3 (diff)
parentfae8d6289a470b8abcf36a5f4b0030ef504caf0b (diff)
Merge branch 'master' into seat-views
Diffstat (limited to 'rootston/main.c')
-rw-r--r--rootston/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rootston/main.c b/rootston/main.c
index 814d3aef..46548094 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -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);
}