summaryrefslogtreecommitdiff
path: root/sway/desktop/fx_renderer.c
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2022-10-26 01:12:57 -0400
committerWill McKinnon <[email protected]>2022-10-26 01:12:57 -0400
commite6cb4e9fa0d058845f00f3b390ce21f4c33de0a9 (patch)
tree866d97bacf20eeb3b9dc5fd7f9d53060a7e4f1ca /sway/desktop/fx_renderer.c
parent55f8222855b7775535685b7c91f2ccb853d0c838 (diff)
fix: corner borders no longer render when borders are off
Diffstat (limited to 'sway/desktop/fx_renderer.c')
-rw-r--r--sway/desktop/fx_renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/fx_renderer.c b/sway/desktop/fx_renderer.c
index 7c8ebc43..6810fa26 100644
--- a/sway/desktop/fx_renderer.c
+++ b/sway/desktop/fx_renderer.c
@@ -361,7 +361,7 @@ void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box,
void fx_render_border_corner(struct fx_renderer *renderer, const struct wlr_box *box,
const float color[static 4], const float projection[static 9],
enum corner_location corner_location, int radius, int border_thickness) {
- if (box->width == 0 || box->height == 0) {
+ if (border_thickness == 0 || box->width == 0 || box->height == 0) {
return;
}
assert(box->width > 0 && box->height > 0);