aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-12 10:36:43 +0100
committeremersion <contact@emersion.fr>2018-02-12 10:36:43 +0100
commit10ecf871f27ddd7170b6fb9ee7bd055b9cb3423c (patch)
tree6f7fd24b33ae1cf0e2b83c55778d1b2bafb08b6f /backend/drm
parent5e58d46cc1a90810e3ee76203cee8ca2f14fb462 (diff)
Remove wlr_backend.events.{output_remove,device_remove}
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 516eb405..7af242bc 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -871,7 +871,8 @@ void wlr_drm_scan_connectors(struct wlr_drm_backend *drm) {
wlr_conn->state = WLR_DRM_CONN_NEEDS_MODESET;
wlr_log(L_INFO, "Sending modesetting signal for '%s'",
wlr_conn->output.name);
- wlr_signal_emit_safe(&drm->backend.events.output_add, &wlr_conn->output);
+ wlr_signal_emit_safe(&drm->backend.events.new_output,
+ &wlr_conn->output);
} else if (wlr_conn->state == WLR_DRM_CONN_CONNECTED &&
drm_conn->connection != DRM_MODE_CONNECTED) {
wlr_log(L_INFO, "'%s' disconnected", wlr_conn->output.name);
@@ -979,8 +980,6 @@ void wlr_drm_connector_cleanup(struct wlr_drm_connector *conn) {
return;
}
- struct wlr_drm_backend *drm = (struct wlr_drm_backend *)conn->output.backend;
-
switch (conn->state) {
case WLR_DRM_CONN_CONNECTED:
case WLR_DRM_CONN_CLEANUP:;
@@ -1014,8 +1013,8 @@ void wlr_drm_connector_cleanup(struct wlr_drm_connector *conn) {
/* Fallthrough */
case WLR_DRM_CONN_NEEDS_MODESET:
wlr_log(L_INFO, "Emitting destruction signal for '%s'",
- conn->output.name);
- wlr_signal_emit_safe(&drm->backend.events.output_remove, &conn->output);
+ conn->output.name);
+ wlr_signal_emit_safe(&conn->output.events.destroy, &conn->output);
break;
case WLR_DRM_CONN_DISCONNECTED:
break;