osx: Add windowDidChangeScreen delegate

Added -windowDidChangeScreen: delegate to handle condition where moving
host window to a different screen would cause pick errors to be output.
The delegate just causes the stage to be redrawn which re-creates the
pick buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=655306
This commit is contained in:
Kirk A. Baker 2011-07-25 15:02:46 -07:00 committed by Emmanuele Bassi
parent 7139ada809
commit 6f6b27fac5

View File

@ -131,6 +131,11 @@ clutter_stage_osx_get_wrapper (ClutterStageWindow *stage_window);
else
return [self frame].size;
}
- (void)windowDidChangeScreen:(NSNotification *)notification
{
clutter_redraw(CLUTTER_STAGE(self->stage_osx->wrapper));
}
@end
/*************************************************************************/