Fixed incorrect size return in osx stage if stage resizable by user.

For some reasons width&height was equal to 1 if flag user-resizable
was true.
This commit is contained in:
Roman Kudiyarov 2010-07-22 13:51:37 +07:00 committed by Robert Bragg
parent 411b5a09bb
commit e4c4ef6792

View File

@ -392,18 +392,8 @@ clutter_stage_osx_get_geometry (ClutterStageWindow *stage_window,
}
else
{
resize = clutter_stage_get_user_resizable (self->wrapper);
if (resize)
{
geometry->width = 1;
geometry->height = 1;
}
else
{
geometry->width = self->requisition_width;
geometry->height = self->requisition_height;
}
}
CLUTTER_OSX_POOL_RELEASE ();