From e790c45303d4128f73de333401d14c960fca1339 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 20 May 2014 15:38:49 -0400 Subject: [PATCH] place: Don't require checking for changing The only time this can change is if find_first_fit returns TRUE, at which point we already jump out. --- src/core/place.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/place.c b/src/core/place.c index 40cb8aee6..4533616d5 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -837,11 +837,8 @@ meta_window_place (MetaWindow *window, x, y, &x, &y)) goto done_check_denied_focus; - /* If no placement has been done, revert to cascade to avoid - * fully overlapping window (e.g. starting multiple terminals) - * */ - if (x == xi->rect.x && y == xi->rect.y) - find_next_cascade (window, windows, x, y, &x, &y); + /* No good fit? Fall back to cascading... */ + find_next_cascade (window, windows, x, y, &x, &y); done_check_denied_focus: /* If the window is being denied focus and isn't a transient of the