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.
This commit is contained in:
Daniel Eklöf 2020-03-15 13:36:35 +01:00
parent 4860c3eb37
commit 71fde3bfac
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 9 additions and 6 deletions

View file

@ -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;