Skip to content

Commit

Permalink
Stop trying to setup round corners with 0 radius
Browse files Browse the repository at this point in the history
If corner_radius is 0 we do not need to do the entire process of setting
up the shaped window.
  • Loading branch information
tsipinakis committed May 29, 2018
1 parent 15c252a commit a0f21f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/x11/x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a0f21f5

Please sign in to comment.