mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
411b5a09bb
commit
e4c4ef6792
@ -390,21 +390,11 @@ clutter_stage_osx_get_geometry (ClutterStageWindow *stage_window,
|
|||||||
geometry->width = size.width;
|
geometry->width = size.width;
|
||||||
geometry->height = size.height;
|
geometry->height = size.height;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
resize = clutter_stage_get_user_resizable (self->wrapper);
|
|
||||||
|
|
||||||
if (resize)
|
|
||||||
{
|
|
||||||
geometry->width = 1;
|
|
||||||
geometry->height = 1;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
geometry->width = self->requisition_width;
|
geometry->width = self->requisition_width;
|
||||||
geometry->height = self->requisition_height;
|
geometry->height = self->requisition_height;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
CLUTTER_OSX_POOL_RELEASE ();
|
CLUTTER_OSX_POOL_RELEASE ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user