[clutter] osx: Add windowDidChangeScreen delegate



commit 6f6b27fac5acb29ad619fc247f6d11d3d6ba309d
Author: Kirk A. Baker <kbaker camerabits com>
Date:   Mon Jul 25 15:02:46 2011 -0700

    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

 clutter/osx/clutter-stage-osx.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/clutter/osx/clutter-stage-osx.c b/clutter/osx/clutter-stage-osx.c
index 6a4fc42..9e602e5 100644
--- a/clutter/osx/clutter-stage-osx.c
+++ b/clutter/osx/clutter-stage-osx.c
@@ -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
 
 /*************************************************************************/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]