aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-28 18:03:18 +0100
committerSimon Ser <contact@emersion.fr>2021-01-28 18:47:47 +0100
commit50b9921642af61487e2d0f425695342bf7c4ad78 (patch)
tree3dfaaf7005cb6029250961330975f43240b51167
parentf8a66072e77edd79d26588b6e3fcf4dfc9230a6a (diff)
backend/x11: remove output_set_refresh
The X11 backend uses the Present extension to schedule frames. The refresh rate is unused.
-rw-r--r--backend/x11/output.c11
1 files changed, 0 insertions, 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);