mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
opt: dont override float geom setting when customsize in ono-floating state
This commit is contained in:
parent
5583f8901a
commit
da89e2401a
1 changed files with 3 additions and 2 deletions
|
|
@ -1728,9 +1728,10 @@ void applyrules(Client *c) {
|
||||||
// the hit size
|
// the hit size
|
||||||
if (!c->iscustompos &&
|
if (!c->iscustompos &&
|
||||||
(!client_is_x11(c) || (c->geom.x == 0 && c->geom.y == 0))) {
|
(!client_is_x11(c) || (c->geom.x == 0 && c->geom.y == 0))) {
|
||||||
|
struct wlr_box pending_center_geom = c->iscustomsize ? c->float_geom : c->geom;
|
||||||
c->float_geom = c->geom =
|
c->float_geom = c->geom =
|
||||||
setclient_coordinate_center(c, mon, c->geom, 0, 0);
|
setclient_coordinate_center(c, mon, pending_center_geom, 0, 0);
|
||||||
} else {
|
} else if(!c->iscustomsize) {
|
||||||
c->float_geom = c->geom;
|
c->float_geom = c->geom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue