mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
xwayland/server: add ready flag
Allows one to check whether the server is currently ready.
This commit is contained in:
parent
45ba35719e
commit
bdcf997a89
2 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ struct wlr_xwayland_server {
|
||||||
struct wl_client *client;
|
struct wl_client *client;
|
||||||
struct wl_event_source *pipe_source;
|
struct wl_event_source *pipe_source;
|
||||||
int wm_fd[2], wl_fd[2];
|
int wm_fd[2], wl_fd[2];
|
||||||
|
bool ready;
|
||||||
|
|
||||||
time_t server_start;
|
time_t server_start;
|
||||||
|
|
||||||
|
|
|
@ -275,6 +275,7 @@ static int xserver_handle_ready(int fd, uint32_t mask, void *data) {
|
||||||
close(fd);
|
close(fd);
|
||||||
wl_event_source_remove(server->pipe_source);
|
wl_event_source_remove(server->pipe_source);
|
||||||
server->pipe_source = NULL;
|
server->pipe_source = NULL;
|
||||||
|
server->ready = true;
|
||||||
|
|
||||||
struct wlr_xwayland_server_ready_event event = {
|
struct wlr_xwayland_server_ready_event event = {
|
||||||
.server = server,
|
.server = server,
|
||||||
|
|
Loading…
Reference in a new issue