aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-27 20:25:34 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-27 20:25:34 -0400
commit7cf4ee128e278108b0326344be01ded93ce7148b (patch)
treec5d7291b1aebf130c701af6936c7cc5614383c45 /backend/drm/backend.c
parent38bb3b960852f9e358ec40c516f99eafeaf83ab2 (diff)
parentd7d73cd2985d4c5d1fdadcfb63680c638e29a4a0 (diff)
Merge remote-tracking branch 'origin/master' into rootston
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 68e73268..8d562007 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -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);