Fix the little jump when a window is repositioned to the center

This commit is contained in:
Tom Beckmann 2012-06-04 21:38:26 +02:00
parent cfe5ebc14f
commit bd5d927309

View File

@ -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;
}
}