mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: introduce drm_connector_commit_state
Backend-initiated mode changes can use this function instead of going through drm_connector_set_mode. drm_connector_set_mode becomes a mere drm_connector_commit_state helper.
This commit is contained in:
parent
e543e26206
commit
a1e8a639b3
3 changed files with 27 additions and 21 deletions
|
|
@ -128,7 +128,7 @@ static void handle_session_active(struct wl_listener *listener, void *data) {
|
|||
.mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
|
||||
.mode = mode,
|
||||
};
|
||||
drm_connector_set_mode(conn, &state);
|
||||
drm_connector_commit_state(conn, &state);
|
||||
}
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "DRM fd paused");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue