Commit a83b6158 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't for the creation of geometry info here. (#114533)

2006-03-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
	for the creation of geometry info here.  (#114533)
parent 26d8e728
2006-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
for the creation of geometry info here. (#114533)
2006-03-11 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for
......
2006-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
for the creation of geometry info here. (#114533)
2006-03-11 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for
......
......@@ -5260,12 +5260,21 @@ gtk_window_compute_configure_request (GtkWindow *window,
parent_widget = (GtkWidget*) window->transient_parent;
pos = get_effective_position (window);
info = gtk_window_get_geometry_info (window, TRUE);
/* by default, don't change position requested */
x = info->last.configure_request.x;
y = info->last.configure_request.y;
info = gtk_window_get_geometry_info (window, FALSE);
/* by default, don't change position requested */
if (info)
{
x = info->last.configure_request.x;
y = info->last.configure_request.y;
}
else
{
x = 0;
y = 0;
}
if (window->need_default_position)
{
......@@ -5358,7 +5367,7 @@ gtk_window_compute_configure_request (GtkWindow *window,
}
} /* if (window->need_default_position) */
if (window->need_default_position &&
if (window->need_default_position && info &&
info->initial_pos_set)
{
x = info->initial_x;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment