mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
opt: no force center x11 window when map
This commit is contained in:
parent
9aa8dab8ac
commit
a67083bdb4
1 changed files with 5 additions and 2 deletions
|
|
@ -1392,8 +1392,11 @@ void applyrules(Client *c) {
|
|||
|
||||
// if no geom rule hit and is normal winodw, use the center pos and record
|
||||
// the hit size
|
||||
if (!hit_rule_pos && (!client_is_x11(c) || !client_is_x11_popup(c))) {
|
||||
if (!hit_rule_pos &&
|
||||
(!client_is_x11(c) || (c->geom.x == 0 && c->geom.y == 0))) {
|
||||
c->float_geom = c->geom = setclient_coordinate_center(c, c->geom, 0, 0);
|
||||
} else {
|
||||
c->float_geom = c->geom;
|
||||
}
|
||||
|
||||
/*-----------------------apply rule action-------------------------*/
|
||||
|
|
@ -4516,7 +4519,7 @@ setfloating(Client *c, int floating) {
|
|||
}
|
||||
|
||||
// 重新计算居中的坐标
|
||||
if (!client_is_x11(c) || !client_is_x11_popup(c))
|
||||
if (!client_is_x11(c) || (c->geom.x == 0 && c->geom.y == 0))
|
||||
target_box = setclient_coordinate_center(c, target_box, 0, 0);
|
||||
backup_box = c->geom;
|
||||
hit = applyrulesgeom(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue