mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Listen to display destroy in backends
This commit is contained in:
parent
bdb6e0b84c
commit
9d43adaafa
8 changed files with 130 additions and 70 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -21,6 +21,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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue