summaryrefslogtreecommitdiff
path: root/clutter
diff options
context:
space:
mode:
authorKirk A. Baker <kbaker@camerabits.com>2011-07-25 15:02:46 -0700
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-07-29 13:57:13 +0100
commit6f6b27fac5acb29ad619fc247f6d11d3d6ba309d (patch)
tree694bedbfdef515eeb0c224e57b81654d6ca7bc70 /clutter
parent7139ada80941754134ef5e201b7baa5e371cc710 (diff)
downloadclutter-6f6b27fac5acb29ad619fc247f6d11d3d6ba309d.tar.gz
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
Diffstat (limited to 'clutter')
-rw-r--r--clutter/osx/clutter-stage-osx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clutter/osx/clutter-stage-osx.c b/clutter/osx/clutter-stage-osx.c
index 6a4fc42e2..9e602e552 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
/*************************************************************************/