opt: improve some risk judgments

This commit is contained in:
DreamMaoMao 2026-02-21 16:37:37 +08:00
parent 722f9f6876
commit 07aed60245
3 changed files with 113 additions and 6 deletions

View file

@ -83,6 +83,9 @@ setclient_coordinate_center(Client *c, Monitor *tm, struct wlr_box geom,
int32_t len = 0;
Monitor *m = tm ? tm : selmon;
if (!m)
return geom;
uint32_t cbw = check_hit_no_border(c) ? c->bw : 0;
if (!c->no_force_center && m) {