mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Add timeout to DRM cleanup
This prevents a potential infinite loop preventing us from closing properly.
This commit is contained in:
parent
8cbade355f
commit
459d138fa2
3 changed files with 46 additions and 27 deletions
|
|
@ -26,6 +26,9 @@ static void wlr_drm_backend_destroy(struct wlr_backend *_backend) {
|
|||
return;
|
||||
}
|
||||
struct wlr_drm_backend *backend = (struct wlr_drm_backend *)_backend;
|
||||
|
||||
wlr_drm_restore_outputs(backend);
|
||||
|
||||
for (size_t i = 0; backend->outputs && i < backend->outputs->length; ++i) {
|
||||
struct wlr_drm_output *output = backend->outputs->items[i];
|
||||
wlr_output_destroy(&output->output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue