mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
opt: want focus x11 client still center pos
This commit is contained in:
parent
a19aa3d471
commit
1dbc5fe2ed
1 changed files with 1 additions and 1 deletions
|
|
@ -5299,7 +5299,7 @@ setfloating(Client *c, int floating) {
|
|||
target_box.width = target_box.width * 0.8;
|
||||
}
|
||||
// 重新计算居中的坐标
|
||||
if(!client_is_x11(c))
|
||||
if(client_is_x11(c) && client_surface_wants_focus(c))
|
||||
target_box = setclient_coordinate_center(target_box, 0, 0);
|
||||
backup_box = c->geom;
|
||||
hit = applyrulesgeom(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue