aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/backend.c3
-rw-r--r--backend/drm/drm.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index e1ec0966..7fdab816 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -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);
}
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index e0eed4c2..a7719727 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -392,9 +392,6 @@ static void drm_connector_start_renderer(struct wlr_drm_connector *conn) {
}
}
-static bool drm_connector_set_mode(struct wlr_output *output,
- struct wlr_output_mode *mode);
-
static void realloc_crtcs(struct wlr_drm_backend *drm, bool *changed_outputs);
static void attempt_enable_needs_modeset(struct wlr_drm_backend *drm) {
@@ -522,7 +519,7 @@ static void realloc_planes(struct wlr_drm_backend *drm, const uint32_t *crtc_in,
static void drm_connector_cleanup(struct wlr_drm_connector *conn);
-static bool drm_connector_set_mode(struct wlr_output *output,
+bool drm_connector_set_mode(struct wlr_output *output,
struct wlr_output_mode *mode) {
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
struct wlr_drm_backend *drm = get_drm_backend_from_backend(output->backend);