mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Run startup command after xwayland is ready
This commit is contained in:
parent
51ef12f128
commit
a317ecdab8
3 changed files with 22 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue