diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-14 14:37:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 14:37:43 -0500 |
commit | 46ac8e1243d3d32c656b09e641f8e9732035f635 (patch) | |
tree | 66bcfa4057175e46509f77537d22379075308165 /include/backend | |
parent | a9fb071d49b244b72846b384a9e2ef2d9b03a05f (diff) | |
parent | 75ef7860bbc3017bbe8e176138cac71da0127711 (diff) |
Merge pull request #468 from emersion/display-destroy
Use destroy listeners on wl_display
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/drm.h | 1 | ||||
-rw-r--r-- | include/backend/libinput.h | 1 | ||||
-rw-r--r-- | include/backend/wayland.h | 1 | ||||
-rw-r--r-- | include/backend/x11.h | 2 |
4 files changed, 5 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 4fad9678..1f70a103 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -91,6 +91,7 @@ struct wlr_drm_backend { struct wl_display *display; struct wl_event_source *drm_event; + struct wl_listener display_destroy; struct wl_listener session_signal; struct wl_listener drm_invalidated; diff --git a/include/backend/libinput.h b/include/backend/libinput.h index be2557ed..6ec718c6 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -16,6 +16,7 @@ struct wlr_libinput_backend { struct libinput *libinput_context; struct wl_event_source *input_event; + struct wl_listener display_destroy; struct wl_listener session_signal; struct wlr_list wlr_device_lists; // list of struct wl_list diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 7e2ec0d6..41cd21c8 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -22,6 +22,7 @@ struct wlr_wl_backend { struct wl_list outputs; struct wlr_egl egl; size_t requested_outputs; + struct wl_listener local_display_destroy; /* remote state */ struct wl_display *remote_display; struct wl_event_source *remote_display_src; diff --git a/include/backend/x11.h b/include/backend/x11.h index f5ec56bc..31a5138b 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -51,6 +51,8 @@ struct wlr_x11_backend { // The time we last received an event xcb_timestamp_t time; + + struct wl_listener display_destroy; }; #endif |