osx/stage: Synthesize an enter event on show
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 16 Mar 2012 23:10:28 +0000 (23:10 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 16 Mar 2012 23:12:33 +0000 (23:12 +0000)
commitb6f5609b2f3cc582e499e6d24ed05fe08807592d
tree1e0695ce3d9169d43789b8f665caa44e881a6f07
parentf7735ff1ad66444ede0fbc8e45447e7e0b4ce895
osx/stage: Synthesize an enter event on show

If the pointer is inside the window frame when it's shown then we need
to synthesize and emit a NSMouseEnterEvent ourselves, as Quartz won't
do it for us.

This is a bit of a blind commit - but it's taken from an equivalent
patch that has been verified to work in GDK.
clutter/osx/clutter-stage-osx.c