mirror of https://github.com/yshui/picom.git
win: don't call win_on_factor_change in win_update_bounding_shape
Later in win_process_update_flags, we check for WIN_FLAGS_FACTOR_CHANGED and will call win_on_factor_change if needed. So in win_update_bounding_shape we just need to set that flag. Otherwise we call win_on_factor_change multiple times unnecessarily. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8c96fbebc4
commit
f509008cb9
|
@ -2046,14 +2046,12 @@ void win_update_bounding_shape(session_t *ps, struct managed_win *w) {
|
|||
|
||||
// Window shape changed, we should free old wpaint and shadow pict
|
||||
// log_trace("free out dated pict");
|
||||
win_set_flags(w, WIN_FLAGS_IMAGES_STALE);
|
||||
win_set_flags(w, WIN_FLAGS_IMAGES_STALE | WIN_FLAGS_FACTOR_CHANGED);
|
||||
win_release_mask(ps->backend_data, w);
|
||||
ps->pending_updates = true;
|
||||
|
||||
free_paint(ps, &w->paint);
|
||||
free_paint(ps, &w->shadow_paint);
|
||||
|
||||
win_on_factor_change(ps, w);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue