From 4f071ffc309d0be5b1bc66045b8a500ff573ae98 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 12 Oct 2018 23:35:51 +0100 Subject: [PATCH] Fix infinite recursive calls win_rounded_corners is called by win_updated_bounding_shape, so there is no need for the former to call the later. Signed-off-by: Yuxuan Shui --- src/win.c | 4 ---- src/win.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/win.c b/src/win.c index 4c98fab..73d4e2d 100644 --- a/src/win.c +++ b/src/win.c @@ -129,10 +129,6 @@ void win_rounded_corners(session_t *ps, win *w) { if (!w->bounding_shaped) return; - // Fetch its bounding region - if (!pixman_region32_not_empty(&w->bounding_shape)) - win_update_bounding_shape(ps, w); - // Quit if border_size() returns None if (!pixman_region32_not_empty(&w->bounding_shape)) return; diff --git a/src/win.h b/src/win.h index e2a8cd3..9374283 100644 --- a/src/win.h +++ b/src/win.h @@ -37,7 +37,6 @@ void win_unmark_client(session_t *ps, win *w); void win_recheck_client(session_t *ps, win *w); Window win_get_leader_raw(session_t *ps, win *w, int recursions); bool win_get_class(session_t *ps, win *w); -void win_rounded_corners(session_t *ps, win *w); void win_calc_opacity(session_t *ps, win *w); void win_calc_dim(session_t *ps, win *w); /**