gtk/gdk/quartz
Kristian Rietveld 66207cf13e Improve enter/motion notify semantics
On X11 we receive enter notify and motion notify events for a window
regardless of its focus state.  On Mac OS X this is not the case.  This
commit improves the semantics to overcome this difference.  It improves
on my earlier patch that sent a motion notify event when a window became
main.

Instead of sending a motion notify when a window becomes main, we now
send one when a window becomes key, which comes closest to a window
getting focus in X11.  This motion notify is needed because Mac OS X does
not send motion events when an application is inactive (none of its
windows have focus), these events are sent in X11.  This dummy motion
notify event (with current coordinates of the mouse cursor) allows an
application to get its prelight and other state right when it gets focus
and thus user attention.

Another change is to send an enter notify event when updating the
tracking rectangle of a GdkQuartView and the mouse cursor is currently in
this rectangle.  This rectangle is at least updated on window creation.
This enter notify event is important for the case where a new window
appears right below the mouse cursor.  The window has to receive an enter
notify event for the subsequent events to be processed correctly.  Mac
OS X does not send one in this case, so we generate it ourselves.

Both of these synthesized events have to go through
_gdk_windowing_got_event() for updating statekeeping, etc.
append_event() has a boolean flag now to make this convenient.
2010-01-30 20:36:28 +01:00
..
gdkapplaunchcontext-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkcolor-quartz.c Start using CGFloat 2009-12-28 21:18:57 +01:00
gdkcursor-quartz.c Fix compile warning in gdk_cursor_new_from_pixmap 2009-12-28 21:18:57 +01:00
gdkdisplay-quartz.c Remove unused variable (fix compiler warning) 2009-10-26 09:52:54 +01:00
gdkdnd-quartz.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkdrawable-quartz.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkdrawable-quartz.h reviewed by: Richard Hult 2008-07-20 16:14:35 +00:00
gdkeventloop-quartz.c Bug 550942 – [patch] Rework of gdkeventloop-quartz.c 2008-11-12 13:30:22 +00:00
gdkevents-quartz.c Improve enter/motion notify semantics 2010-01-30 20:36:28 +01:00
gdkfont-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkgc-quartz.c Start using CGFloat 2009-12-28 21:18:57 +01:00
gdkgeometry-quartz.c Bug 550939 - GtkFileChooser listbox does not refresh selection 2009-09-21 20:41:35 +02:00
gdkglobals-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkim-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkimage-quartz.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkinput-old.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkinput.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkinputprivate.h Bug 598881 - Unimplemented GdkWindowImplIface methods crash gimp on OSX 2009-10-23 13:53:57 +02:00
gdkkeys-quartz.c Add gdk_keymap_map_virtual_modifiers() to Quartz backend 2009-12-28 21:18:57 +01:00
gdkmain-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkpixmap-quartz.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkpixmap-quartz.h
gdkprivate-quartz.h Improve enter/motion notify semantics 2010-01-30 20:36:28 +01:00
gdkproperty-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkquartz.h Forgotten in previous commit. 2008-05-12 11:34:23 +00:00
GdkQuartzView.c Improve enter/motion notify semantics 2010-01-30 20:36:28 +01:00
GdkQuartzView.h Remove workaround for missing enter events on newly popped up windows 2009-04-02 10:15:32 +02:00
GdkQuartzWindow.c initWithContentRect: has a NSUInteger parameter now 2009-12-28 21:18:56 +01:00
GdkQuartzWindow.h Move the tracking rect workaround from here... 2008-01-10 19:35:53 +00:00
gdkscreen-quartz.c Implement gdk_screen_get_primary_monitor in all GDK backends 2009-12-13 20:40:02 -05:00
gdkscreen-quartz.h Rework coordinate transformation to be based on root window 2009-10-26 09:52:54 +01:00
gdkselection-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkspawn-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdktestutils-quartz.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkvisual-quartz.c Do not use static GTypeInfo and GInterfaceInfo 2009-11-06 01:21:09 +01:00
gdkwindow-quartz.c Improve enter/motion notify semantics 2010-01-30 20:36:28 +01:00
gdkwindow-quartz.h Use CGFLOAT_DEFINED, don't rely on NSINTEGER_DEFINED for this 2009-12-28 23:01:42 +01:00
Makefile.am Create a proper subclass of GdkScreen: GdkScreenQuartz 2009-10-26 09:52:52 +01:00
xcursors.h Fallback to X cursors for the ones that OS X doesn't provide. Fixes bug 2007-06-25 19:43:22 +00:00