Merge pull request #547 from MemoritiK/main

Windowrule offset not applying
This commit is contained in:
DreamMaoMao
2025-12-31 15:50:32 +08:00
committed by GitHub

View File

@@ -1380,7 +1380,7 @@ void applyrules(Client *c) {
if (r->offsetx || r->offsety || r->width > 0 || r->height > 0) { if (r->offsetx || r->offsety || r->width > 0 || r->height > 0) {
hit_rule_pos = r->offsetx || r->offsety ? true : false; hit_rule_pos = r->offsetx || r->offsety ? true : false;
c->iscustomsize = 1; c->iscustomsize = 1;
c->float_geom = setclient_coordinate_center(c, c->float_geom, c->float_geom = c->geom = setclient_coordinate_center(c, c->float_geom,
r->offsetx, r->offsety); r->offsetx, r->offsety);
} }
if (c->isfloating) { if (c->isfloating) {