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.
This commit is contained in:
Nikos Tsipinakis 2018-05-29 11:36:51 +03:00
parent 15c252afb0
commit a0f21f5c26

View File

@ -156,7 +156,8 @@ void x_display_surface(cairo_surface_t *srf, window_x11 *win, const struct dimen
cairo_paint(win->c_ctx); cairo_paint(win->c_ctx);
cairo_show_page(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); XFlush(xctx.dpy);