wayland: only bind to 'presentation' interface if -p,--presentation-timings

This commit is contained in:
Daniel Eklöf 2019-12-31 16:12:48 +01:00
parent 7fe081600a
commit b100a82c2a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 16 additions and 10 deletions

View file

@ -100,8 +100,10 @@ struct wl_window {
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
};
struct config;
struct terminal;
struct wayland {
const struct config *conf;
struct fdm *fdm;
struct wl_display *display;
struct wl_registry *registry;
@ -166,7 +168,7 @@ struct wayland {
struct terminal *moused;
};
struct wayland *wayl_init(struct fdm *fdm);
struct wayland *wayl_init(const struct config *conf, struct fdm *fdm);
void wayl_destroy(struct wayland *wayl);
struct terminal *wayl_terminal_from_surface(