diff options
author | emersion <contact@emersion.fr> | 2017-11-12 22:12:50 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-12 22:12:50 +0100 |
commit | f8b43940b1a14e78c5365c9c1d17bfc79f523530 (patch) | |
tree | ad2aa347b862cc7446a1cc80f5932847e1491fbe /xwayland | |
parent | 2e312a7e27fac0ef299abbdf5f66cf164992f02f (diff) | |
parent | a317ecdab8ef8deb184b72db208794daa4c4a3a0 (diff) |
Merge branch 'master' into cursor-scale
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 0452f04c..ecec785c 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -211,6 +211,8 @@ static int xserver_handle_ready(int signal_number, void *data) { snprintf(display_name, sizeof(display_name), ":%d", wlr_xwayland->display); setenv("DISPLAY", display_name, true); + wl_signal_emit(&wlr_xwayland->events.ready, wlr_xwayland); + return 1; /* wayland event loop dispatcher's count */ } @@ -223,6 +225,7 @@ static bool wlr_xwayland_init(struct wlr_xwayland *wlr_xwayland, wlr_xwayland->wl_fd[0] = wlr_xwayland->wl_fd[1] = -1; wlr_xwayland->wm_fd[0] = wlr_xwayland->wm_fd[1] = -1; wl_signal_init(&wlr_xwayland->events.new_surface); + wl_signal_init(&wlr_xwayland->events.ready); wlr_xwayland->display = open_display_sockets(wlr_xwayland->x_fd); if (wlr_xwayland->display < 0) { |