mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: fix modeset on drm fd resume
On DRM resume, such as switching back to a TTY, the output needs to be modeset to the current mode. However, wlr_output_set_mode will return early when attempting to set the mode to the current mode. This just steps around wlr_output_set_mode and calls drm_connector_set_mode directly.
This commit is contained in:
parent
dcd05f67ab
commit
50011e7170
3 changed files with 5 additions and 5 deletions
|
|
@ -93,7 +93,8 @@ 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) {
|
||||
wlr_output_set_mode(&conn->output, conn->output.current_mode);
|
||||
drm_connector_set_mode(&conn->output,
|
||||
conn->output.current_mode);
|
||||
} else {
|
||||
enable_drm_connector(&conn->output, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue