GNOME Bugzilla – Bug 655306
Added windowDidChangeScreen delegate to fix pick errors when window moved to different screen
Last modified: 2011-07-29 12:58:37 UTC
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. Patch is here: https://github.com/spatulasnout/clutter/commit/7466e2e17a4ff2326769c1f1cbf1c6c651098c7c commit 7466e2e17a4ff2326769c1f1cbf1c6c651098c7c Author: Kirk A. Baker <kbaker@camerabits.com> Date: Mon Jul 25 15:02:46 2011 -0700 Added -windowDidChangeScreen: delegate to handle condition where moving host window to a different screen would cause pick error diff --git a/clutter/osx/clutter-stage-osx.c b/clutter/osx/clutter-stage-osx.c index cc80e02..999520c 100644 --- a/clutter/osx/clutter-stage-osx.c +++ b/clutter/osx/clutter-stage-osx.c @@ -132,6 +132,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 /*************************************************************************/
Created attachment 192874 [details] [review] 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.
thanks for the patch, it looks good to me. I took the liberty of reformatting the commit message to conform with our rules.
Attachment 192874 [details] pushed as 6f6b27f - osx: Add windowDidChangeScreen delegate