opt: no force center x11 window when map
This commit is contained in:
@@ -1392,8 +1392,11 @@ void applyrules(Client *c) {
|
|||||||
|
|
||||||
// if no geom rule hit and is normal winodw, use the center pos and record
|
// if no geom rule hit and is normal winodw, use the center pos and record
|
||||||
// the hit size
|
// 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);
|
c->float_geom = c->geom = setclient_coordinate_center(c, c->geom, 0, 0);
|
||||||
|
} else {
|
||||||
|
c->float_geom = c->geom;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------apply rule action-------------------------*/
|
/*-----------------------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);
|
target_box = setclient_coordinate_center(c, target_box, 0, 0);
|
||||||
backup_box = c->geom;
|
backup_box = c->geom;
|
||||||
hit = applyrulesgeom(c);
|
hit = applyrulesgeom(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user