[mutter] place: Don't require checking for changing



commit e790c45303d4128f73de333401d14c960fca1339
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue May 20 15:38:49 2014 -0400

    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 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/core/place.c b/src/core/place.c
index 40cb8ae..4533616 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]