diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-05-20 15:38:07 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-05-20 15:59:15 -0400 |
commit | ae4e553ddbcd8a5df1bf60ecfa0abc5dc23d0cde (patch) | |
tree | e7b51976980cd1e11bdda0918ff5ff6f54e7e8fe | |
parent | 809568280b996c67d43e2a35e2721d8b6b0cf0b0 (diff) | |
download | mutter-ae4e553ddbcd8a5df1bf60ecfa0abc5dc23d0cde.tar.gz |
place: Move maximization path above first fit finding
-rw-r--r-- | src/core/place.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/place.c b/src/core/place.c index 57104b31f..40cb8aee6 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -803,15 +803,6 @@ meta_window_place (MetaWindow *window, /* Warning, this is a round trip! */ xi = meta_screen_get_current_monitor_info (window->screen); - /* "Origin" placement algorithm */ - x = xi->rect.x; - y = xi->rect.y; - - if (find_first_fit (window, windows, - xi->number, - x, y, &x, &y)) - goto done_check_denied_focus; - /* Maximize windows if they are too big for their work area (bit of * a hack here). Assume undecorated windows probably don't intend to * be maximized. @@ -837,6 +828,15 @@ meta_window_place (MetaWindow *window, } } + /* "Origin" placement algorithm */ + x = xi->rect.x; + y = xi->rect.y; + + if (find_first_fit (window, windows, + xi->number, + 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) * */ |