From 71fde3bfac37f4a67f33ecd7888ee6c134162a95 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 15 Mar 2020 13:36:35 +0100 Subject: wayland: store display FD in wayland struct This way we: * Don't have to call wl_display_get_fd() all the time * No longer call fdm_del_no_close() even though the FD hasn't been added to the FDM. --- wayland.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index 761af73b..70b21d4b 100644 --- a/wayland.h +++ b/wayland.h @@ -198,6 +198,9 @@ struct terminal; struct wayland { const struct config *conf; struct fdm *fdm; + + int fd; + struct wl_display *display; struct wl_registry *registry; struct wl_compositor *compositor; -- cgit v1.3