mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
backend/drm: make drm_connector_set_mode take a wlr_drm_connector
Since this is an internal DRM backend function, there's no reason we need to take a generic wlr_output.
This commit is contained in:
parent
445750aa9a
commit
61095f4a12
3 changed files with 9 additions and 10 deletions
|
|
@ -94,10 +94,9 @@ static void session_signal(struct wl_listener *listener, void *data) {
|
|||
struct wlr_drm_connector *conn;
|
||||
wl_list_for_each(conn, &drm->outputs, link){
|
||||
if (conn->output.enabled && conn->output.current_mode != NULL) {
|
||||
drm_connector_set_mode(&conn->output,
|
||||
conn->output.current_mode);
|
||||
drm_connector_set_mode(conn, conn->output.current_mode);
|
||||
} else {
|
||||
drm_connector_set_mode(&conn->output, NULL);
|
||||
drm_connector_set_mode(conn, NULL);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue