Moved the call to meta_screen_get_natural_xinerama_list to earlier in

2005-09-02  Brent Smith  <gnome@nextreality.net>

        * src/place.c: (meta_window_place): Moved the call to
        meta_screen_get_natural_xinerama_list to earlier in
        function so that xineramas_list is allocated before
        find_first_fit is called.  Fixes #315000
This commit is contained in:
Brent Smith 2005-09-02 15:54:34 +00:00 committed by Elijah Newren
parent 304a05b9a3
commit 6bb6566b86
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2005-09-02 Brent Smith <gnome@nextreality.net>
* src/place.c: (meta_window_place): Moved the call to
meta_screen_get_natural_xinerama_list to earlier in
function so that xineramas_list is allocated before
find_first_fit is called. Fixes #315000
2005-08-22 Elijah Newren <newren@gmail.com> 2005-08-22 Elijah Newren <newren@gmail.com>
* configure.in: post-release version bump to 2.11.5 * configure.in: post-release version bump to 2.11.5

View File

@ -854,6 +854,10 @@ meta_window_place (MetaWindow *window,
} }
} }
meta_screen_get_natural_xinerama_list (window->screen,
&xineramas_list,
&n_xineramas);
/* FIXME UTILITY with transient set should be stacked up /* FIXME UTILITY with transient set should be stacked up
* on the sides of the parent window or something. * on the sides of the parent window or something.
*/ */
@ -917,10 +921,6 @@ meta_window_place (MetaWindow *window,
x = xi->x_origin; x = xi->x_origin;
y = xi->y_origin; y = xi->y_origin;
meta_screen_get_natural_xinerama_list (window->screen,
&xineramas_list,
&n_xineramas);
if (find_first_fit (window, fgeom, windows, if (find_first_fit (window, fgeom, windows,
xineramas_list, n_xineramas, xineramas_list, n_xineramas,
x, y, &x, &y)) x, y, &x, &y))