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.
This commit is contained in:
Jasper St. Pierre 2014-05-20 15:38:49 -04:00
parent ae4e553ddb
commit e790c45303

View File

@ -837,11 +837,8 @@ meta_window_place (MetaWindow *window,
x, y, &x, &y)) x, y, &x, &y))
goto done_check_denied_focus; goto done_check_denied_focus;
/* If no placement has been done, revert to cascade to avoid /* No good fit? Fall back to cascading... */
* fully overlapping window (e.g. starting multiple terminals) find_next_cascade (window, windows, x, y, &x, &y);
* */
if (x == xi->rect.x && y == xi->rect.y)
find_next_cascade (window, windows, x, y, &x, &y);
done_check_denied_focus: done_check_denied_focus:
/* If the window is being denied focus and isn't a transient of the /* If the window is being denied focus and isn't a transient of the