From 7a8895944b373a99023bc21998a48079debcc544 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 13 Jul 2009 16:56:47 +0100 Subject: [PATCH] [osx] Enable motion event dispatch By default NSWindow does not listen to mousemoved events and hence the default behaviour for Actors using the "motion-event" signal differs from backend to backend. Using setAcceptsMouseMovedEvents seems to fix it; unfortunately, I cannot verify it, but since nobody is currently working on the Quartz backend I guess it cannot get more broken than how currently is. Thanks to: Michael Fixes bug: http://bugzilla.openedhand.com/show_bug.cgi?id=1687 --- clutter/osx/clutter-stage-osx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/osx/clutter-stage-osx.c b/clutter/osx/clutter-stage-osx.c index ec8851baa..02d6cf71f 100644 --- a/clutter/osx/clutter-stage-osx.c +++ b/clutter/osx/clutter-stage-osx.c @@ -54,6 +54,7 @@ clutter_stage_osx_state_update (ClutterStageOSX *self, { [self setDelegate: self]; [self useOptimizedDrawing: YES]; + [self setAcceptsMouseMovedEvents:YES]; [self setContentView: aView]; [self setTitle:[NSString stringWithUTF8String: aTitle ? aTitle : ""]]; self->stage_osx = aStage;