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:
parent
15c252afb0
commit
a0f21f5c26
@ -156,6 +156,7 @@ 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);
|
||||||
|
|
||||||
|
if (settings.corner_radius != 0)
|
||||||
x_win_round_corners(win, dim->corner_radius);
|
x_win_round_corners(win, dim->corner_radius);
|
||||||
|
|
||||||
XFlush(xctx.dpy);
|
XFlush(xctx.dpy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user