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
f677c71ec6
commit
b0f3049644
1 changed files with 3 additions and 2 deletions
|
|
@ -1747,9 +1747,10 @@ void applyrules(Client *c) {
|
|||
// the hit size
|
||||
if (!c->iscustompos &&
|
||||
(!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 =
|
||||
setclient_coordinate_center(c, mon, c->geom, 0, 0);
|
||||
} else {
|
||||
setclient_coordinate_center(c, mon, pending_center_geom, 0, 0);
|
||||
} else if(!c->iscustomsize) {
|
||||
c->float_geom = c->geom;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue