aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-04-23 20:22:42 +0300
committerDrew DeVault <sir@cmpwn.com>2019-04-23 14:34:30 -0600
commit20690346c7a9f75cfb181cb613b8f006e6ce3e14 (patch)
tree57e73e611caf006c59948c1a8235394b198c2f16 /backend
parent5e6766a165bd4bc71f1dc24c4348f7be0f020ddd (diff)
output: rename needs_commit to needs_frame
This new name makes more sense, since it is a request from the backend to get a new frame. In the future a commit may not convey a new frame.
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c10
-rw-r--r--backend/x11/backend.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index f97166f1..17a2e48d 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -338,7 +338,7 @@ bool set_drm_connector_gamma(struct wlr_output *output, size_t size,
bool ok = drm->iface->crtc_set_gamma(drm, conn->crtc, size, _r, _g, _b);
if (ok) {
- wlr_output_update_needs_commit(output);
+ wlr_output_update_needs_frame(output);
free(conn->crtc->gamma_table);
conn->crtc->gamma_table = gamma_table;
@@ -677,7 +677,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
return false;
}
- wlr_output_update_needs_commit(output);
+ wlr_output_update_needs_frame(output);
}
if (!update_texture) {
@@ -737,7 +737,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
}
bool ok = drm->iface->crtc_set_cursor(drm, crtc, bo);
if (ok) {
- wlr_output_update_needs_commit(output);
+ wlr_output_update_needs_frame(output);
}
return ok;
}
@@ -774,7 +774,7 @@ static bool drm_connector_move_cursor(struct wlr_output *output,
bool ok = drm->iface->crtc_move_cursor(drm, conn->crtc, box.x, box.y);
if (ok) {
- wlr_output_update_needs_commit(output);
+ wlr_output_update_needs_frame(output);
}
return ok;
}
@@ -1435,7 +1435,7 @@ static void drm_connector_cleanup(struct wlr_drm_connector *conn) {
wl_event_source_remove(conn->output.idle_frame);
conn->output.idle_frame = NULL;
}
- conn->output.needs_commit = false;
+ conn->output.needs_frame = false;
conn->output.frame_pending = false;
/* Fallthrough */
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index ddd8ab77..6bece36d 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -46,7 +46,7 @@ static void handle_x11_event(struct wlr_x11_backend *x11,
struct wlr_x11_output *output =
get_x11_output_from_window_id(x11, ev->window);
if (output != NULL) {
- wlr_output_update_needs_commit(&output->wlr_output);
+ wlr_output_update_needs_frame(&output->wlr_output);
}
break;
}