From 10c82ed7fe9be96cc79e07302b2046c0ca957f47 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Wed, 20 May 2020 21:16:31 +0500 Subject: [PATCH] Rename x_win_round_corners() to x_win_corners_shape() It's all job is to feel proper X11 shape. --- src/x11/x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x11/x.c b/src/x11/x.c index b82f481..d5b15d7 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -85,7 +85,7 @@ static void x_win_move(struct window_x11 *win, int x, int y, int width, int heig } } -static void x_win_round_corners(struct window_x11 *win, const int rad) +static void x_win_corners_shape(struct window_x11 *win, const int rad) { const int width = win->dim.w; const int height = win->dim.h; @@ -161,8 +161,8 @@ void x_display_surface(cairo_surface_t *srf, struct window_x11 *win, const struc cairo_paint(win->c_ctx); cairo_show_page(win->c_ctx); - x_win_round_corners(win, dim->corner_radius); if (settings.corner_radius != 0 && ! x_win_composited(win)) + x_win_corners_shape(win, dim->corner_radius); else x_win_corners_unshape(win);