summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrent Smith <gnome@nextreality.net>2005-09-02 15:54:34 +0000
committerElijah Newren <newren@src.gnome.org>2005-09-02 15:54:34 +0000
commit6bb6566b862d310a8cd38f94fb998dc5263eb5f7 (patch)
tree97d12d513d0d6f87e68e3ba01d204e5958e3aefd /src
parent304a05b9a38867ceab32785ec6556f6f479c72af (diff)
downloadmetacity-6bb6566b862d310a8cd38f94fb998dc5263eb5f7.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/place.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/place.c b/src/place.c
index d4b41804..5620be2a 100644
--- a/src/place.c
+++ b/src/place.c
@@ -853,6 +853,10 @@ meta_window_place (MetaWindow *window,
goto done;
}
}
+
+ meta_screen_get_natural_xinerama_list (window->screen,
+ &xineramas_list,
+ &n_xineramas);
/* FIXME UTILITY with transient set should be stacked up
* on the sides of the parent window or something.
@@ -917,10 +921,6 @@ meta_window_place (MetaWindow *window,
x = xi->x_origin;
y = xi->y_origin;
- meta_screen_get_natural_xinerama_list (window->screen,
- &xineramas_list,
- &n_xineramas);
-
if (find_first_fit (window, fgeom, windows,
xineramas_list, n_xineramas,
x, y, &x, &y))