diff options
author | emersion <contact@emersion.fr> | 2017-12-08 00:59:37 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-08 00:59:37 +0100 |
commit | 18eb1eee3f97e169ff5fca67625452cbd81627c5 (patch) | |
tree | 831ef5d92c1e781ad2d1af9870a0076c6a74e27d /include/wlr | |
parent | 9d43adaafa6bbe63116b3feba796844169f91b25 (diff) |
Listen to display destroy in xwayland, rename wlr_egl_free
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/render/egl.h | 3 | ||||
-rw-r--r-- | include/wlr/xwayland.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 9ab4d9ce..67a81f37 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -4,6 +4,7 @@ #include <EGL/egl.h> #include <EGL/eglext.h> #include <stdbool.h> +#include <wayland-server.h> struct wlr_egl { EGLDisplay display; @@ -27,7 +28,7 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, EGLint visual_id, void * Frees all related egl resources, makes the context not-current and * unbinds a bound wayland display. */ -void wlr_egl_free(struct wlr_egl *egl); +void wlr_egl_finish(struct wlr_egl *egl); /** * Binds the given display to the egl instance. diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index 792d2b88..455b1026 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -24,6 +24,7 @@ struct wlr_xwayland { struct wl_event_source *sigusr1_source; struct wl_listener destroy_listener; + struct wl_listener display_destroy; struct wlr_xwm *xwm; struct wlr_xwayland_cursor *cursor; |