From 50b9921642af61487e2d0f425695342bf7c4ad78 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 28 Jan 2021 18:03:18 +0100 Subject: [PATCH] backend/x11: remove output_set_refresh The X11 backend uses the Present extension to schedule frames. The refresh rate is unused. --- backend/x11/output.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/backend/x11/output.c b/backend/x11/output.c index 96f8da38..07317637 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -39,20 +39,11 @@ static struct wlr_x11_output *get_x11_output_from_output( return (struct wlr_x11_output *)wlr_output; } -static void output_set_refresh(struct wlr_output *wlr_output, int32_t refresh) { - struct wlr_x11_output *output = get_x11_output_from_output(wlr_output); - - wlr_output_update_custom_mode(&output->wlr_output, wlr_output->width, - wlr_output->height, 0); -} - static bool output_set_custom_mode(struct wlr_output *wlr_output, int32_t width, int32_t height, int32_t refresh) { struct wlr_x11_output *output = get_x11_output_from_output(wlr_output); struct wlr_x11_backend *x11 = output->x11; - output_set_refresh(&output->wlr_output, refresh); - const uint32_t values[] = { width, height }; xcb_void_cookie_t cookie = xcb_configure_window_checked( x11->xcb, output->win, @@ -382,8 +373,6 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) { return NULL; } - output_set_refresh(&output->wlr_output, 0); - snprintf(wlr_output->name, sizeof(wlr_output->name), "X11-%zd", ++x11->last_output_num); parse_xcb_setup(wlr_output, x11->xcb);