aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-22 19:53:33 +0100
committerSimon Ser <contact@emersion.fr>2020-12-22 19:53:33 +0100
commit2de400a541fead618a670d0e096367817de36082 (patch)
tree5e4ff82ba01343ef76e405c6310c1ecfea05e57b /backend
parent85cf4b235deedda89737d146c9ebf23958c0b8f6 (diff)
backend/drm: assert connector state after wlr_output_destroy
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 5bdb326e..d1e6cc5d 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1558,6 +1558,8 @@ static void disconnect_drm_connector(struct wlr_drm_connector *conn) {
// This will cleanup the compositor-facing wlr_output, but won't destroy
// our wlr_drm_connector.
wlr_output_destroy(&conn->output);
+
+ assert(conn->state == WLR_DRM_CONN_DISCONNECTED);
}
void destroy_drm_connector(struct wlr_drm_connector *conn) {