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 <yshuiv7@gmail.com>
This commit is contained in:
parent
bbb73fe64e
commit
4f071ffc30
|
@ -129,10 +129,6 @@ void win_rounded_corners(session_t *ps, win *w) {
|
||||||
if (!w->bounding_shaped)
|
if (!w->bounding_shaped)
|
||||||
return;
|
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
|
// Quit if border_size() returns None
|
||||||
if (!pixman_region32_not_empty(&w->bounding_shape))
|
if (!pixman_region32_not_empty(&w->bounding_shape))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -37,7 +37,6 @@ void win_unmark_client(session_t *ps, win *w);
|
||||||
void win_recheck_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);
|
Window win_get_leader_raw(session_t *ps, win *w, int recursions);
|
||||||
bool win_get_class(session_t *ps, win *w);
|
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_opacity(session_t *ps, win *w);
|
||||||
void win_calc_dim(session_t *ps, win *w);
|
void win_calc_dim(session_t *ps, win *w);
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue