aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-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) {