From a0f21f5c266b76b46f3b994b4ef6a0ca2909c475 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Tue, 29 May 2018 11:36:51 +0300 Subject: [PATCH] Stop trying to setup round corners with 0 radius If corner_radius is 0 we do not need to do the entire process of setting up the shaped window. --- src/x11/x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x11/x.c b/src/x11/x.c index 776e88d..bda92e5 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -156,7 +156,8 @@ void x_display_surface(cairo_surface_t *srf, window_x11 *win, const struct dimen 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_round_corners(win, dim->corner_radius); XFlush(xctx.dpy);