Commit 37effb99 authored by Michael Natterer's avatar Michael Natterer 😴

app: use the window's allocation instead of gdk_drawable_get_size()

parent 5af8cc1d
......@@ -649,8 +649,12 @@ gimp_session_info_read_geometry (GimpSessionInfo *info)
if (gimp_session_info_get_remember_size (info))
{
gdk_drawable_get_size (GDK_DRAWABLE (window),
&info->p->width, &info->p->height);
GtkAllocation allocation;
gtk_widget_get_allocation (info->p->widget, &allocation);
info->p->width = allocation.width;
info->p->height = allocation.height;
}
else
{
......
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