mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
presentation-time: constify wlr_presentation_feedback_send_presented()
We don't need to mutate the event in this function.
This commit is contained in:
parent
25a62a3775
commit
544c0622fa
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ struct wlr_presentation_feedback *wlr_presentation_surface_sampled(
|
||||||
struct wlr_presentation *presentation, struct wlr_surface *surface);
|
struct wlr_presentation *presentation, struct wlr_surface *surface);
|
||||||
void wlr_presentation_feedback_send_presented(
|
void wlr_presentation_feedback_send_presented(
|
||||||
struct wlr_presentation_feedback *feedback,
|
struct wlr_presentation_feedback *feedback,
|
||||||
struct wlr_presentation_event *event);
|
const struct wlr_presentation_event *event);
|
||||||
void wlr_presentation_feedback_destroy(
|
void wlr_presentation_feedback_destroy(
|
||||||
struct wlr_presentation_feedback *feedback);
|
struct wlr_presentation_feedback *feedback);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ static void feedback_handle_resource_destroy(struct wl_resource *resource) {
|
||||||
|
|
||||||
static void feedback_resource_send_presented(
|
static void feedback_resource_send_presented(
|
||||||
struct wl_resource *feedback_resource,
|
struct wl_resource *feedback_resource,
|
||||||
struct wlr_presentation_event *event) {
|
const struct wlr_presentation_event *event) {
|
||||||
struct wl_client *client = wl_resource_get_client(feedback_resource);
|
struct wl_client *client = wl_resource_get_client(feedback_resource);
|
||||||
struct wl_resource *output_resource;
|
struct wl_resource *output_resource;
|
||||||
wl_resource_for_each(output_resource, &event->output->resources) {
|
wl_resource_for_each(output_resource, &event->output->resources) {
|
||||||
|
@ -207,7 +207,7 @@ struct wlr_presentation *wlr_presentation_create(struct wl_display *display,
|
||||||
|
|
||||||
void wlr_presentation_feedback_send_presented(
|
void wlr_presentation_feedback_send_presented(
|
||||||
struct wlr_presentation_feedback *feedback,
|
struct wlr_presentation_feedback *feedback,
|
||||||
struct wlr_presentation_event *event) {
|
const struct wlr_presentation_event *event) {
|
||||||
struct wl_resource *resource, *tmp;
|
struct wl_resource *resource, *tmp;
|
||||||
wl_resource_for_each_safe(resource, tmp, &feedback->resources) {
|
wl_resource_for_each_safe(resource, tmp, &feedback->resources) {
|
||||||
feedback_resource_send_presented(resource, event);
|
feedback_resource_send_presented(resource, event);
|
||||||
|
|
Loading…
Reference in a new issue