aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-15 12:36:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-15 12:36:35 +0000
commit71fde3bfac37f4a67f33ecd7888ee6c134162a95 (patch)
treec7b7688ce944976423f572b6b252173627676e3b /wayland.h
parentcompletions: zsh: don't strip spaces from font name completions (diff)
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.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h3
1 files changed, 3 insertions, 0 deletions
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;