mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
Fix the little jump when a window is repositioned to the center
This commit is contained in:
parent
cfe5ebc14f
commit
bd5d927309
@ -276,8 +276,8 @@ namespace Gala
|
||||
if (rect.x < 100 && rect.y < 100) { //guess the window is placed at a bad spot
|
||||
actor.meta_window.move_frame (true, (int)(width/2.0f - rect.width/2.0f),
|
||||
(int)(height/2.0f - rect.height/2.0f));
|
||||
actor.x = width/2.0f - rect.width/2.0f;
|
||||
actor.y = height/2.0f - rect.height/2.0f;
|
||||
actor.x = width/2.0f - rect.width/2.0f - 10;
|
||||
actor.y = height/2.0f - rect.height/2.0f - 10;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user