mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
Added willResize delegate for osx stage.
By default a clutter stage is not user resizable and this delegate controls this option while resizing the stage.
This commit is contained in:
parent
49b2b62311
commit
af8308295c
@ -107,6 +107,14 @@ clutter_stage_osx_state_update (ClutterStageOSX *self,
|
||||
|
||||
clutter_stage_osx_state_update (self->stage_osx, CLUTTER_STAGE_STATE_ACTIVATED, 0);
|
||||
}
|
||||
|
||||
- (NSSize) windowWillResize:(NSWindow *) sender toSize:(NSSize) frameSize
|
||||
{
|
||||
if ( clutter_stage_get_user_resizable (self->stage_osx->wrapper) )
|
||||
return frameSize;
|
||||
else
|
||||
return [self frame].size;
|
||||
}
|
||||
@end
|
||||
|
||||
/*************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user