gtk2/gdk
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
..
directfb Use CAIRO_VERSION instead of CAIRO_VERSION_CODE 2010-01-03 18:22:55 +09:00
quartz Improve enter/motion notify semantics 2010-01-30 20:36:28 +01:00
tests Add git.mk to generate .gitignore files 2009-05-04 14:29:21 -04:00
win32 Add gdk_keymap_map_virtual_modifiers() implementation 2009-12-21 22:43:44 +02:00
x11 Minor doc fix 2010-01-25 22:32:00 -05:00
abicheck.sh
COPYING
gdk.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdk.h
gdk.symbols Try harder to handle accelerators involving virtual modifiers 2009-12-21 11:15:28 -05:00
gdkapplaunchcontext.c
gdkapplaunchcontext.h
gdkcairo.c Add gdk_cairo_reset_clip 2009-09-01 17:06:41 +02:00
gdkcairo.h Fix a typo 2009-09-04 23:27:37 -04:00
gdkcolor.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkcolor.h
gdkconfig.h.win32
gdkcursor.c
gdkcursor.h
gdkdisplay.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkdisplay.h Initial version of input support 2009-05-29 16:39:12 +02:00
gdkdisplaymanager.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkdisplaymanager.h
gdkdnd.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkdnd.h
gdkdraw.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkdrawable.h Make GdkDrawable draw_drawable backwards compat 2009-07-01 19:50:49 +02:00
gdkenumtypes.c.template
gdkenumtypes.h.template
gdkevents.c [docs] Add missing "Deprecated: 2.x" to the api doc comments 2010-01-11 06:25:59 +01:00
gdkevents.h Deprecate gdk_event_get_graphics exposes 2009-09-09 09:00:15 -04:00
gdkfont.c [docs] Add missing "Deprecated: 2.x" to the api doc comments 2010-01-11 06:25:59 +01:00
gdkfont.h
gdkgc.c Plug a pixmap leak 2010-01-11 10:23:57 -05:00
gdkgc.h Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions 2009-10-14 03:13:52 +02:00
gdkglobals.c Add support for enabling only native windows 2009-08-24 15:22:29 +02:00
gdki18n.h
gdkimage.c [gdk/gdkimage] Add missing "Deprecated: 2.x" to the api doc comments. 2009-11-06 03:37:56 +01:00
gdkimage.h Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions 2009-10-14 03:13:52 +02:00
gdkinput.h Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkinternals.h Track direct window cairo access and avoid tricks when used 2010-01-19 15:01:03 +01:00
gdkintl.h
gdkkeynames.c
gdkkeys.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkkeys.h Try harder to handle accelerators involving virtual modifiers 2009-12-21 11:15:28 -05:00
gdkkeysyms-update.pl Avoid duplicate keysyms, ignore mispelled one 2009-09-10 10:16:44 +01:00
gdkkeysyms.h Avoid duplicate keysyms, ignore mispelled one 2009-09-10 10:16:44 +01:00
gdkkeyuni.c
gdkmarshalers.list Add signals for offscreen window embedding 2009-06-08 19:39:06 +02:00
gdkmedialib.c Minor fix for GTK+ mediaLib code. 2009-04-29 18:52:32 -05:00
gdkmedialib.h
gdkoffscreenwindow.c Fix a thinko in computing damage for segments 2009-12-18 19:17:04 -05:00
gdkpango.c Initial client-side-windows work 2009-04-02 10:14:01 +02:00
gdkpango.h
gdkpixbuf-drawable.c
gdkpixbuf-render.c
gdkpixbuf.h
gdkpixmap.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkpixmap.h Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions 2009-10-14 03:13:52 +02:00
gdkpoly-generic.h
gdkpolyreg-generic.c
gdkprivate.h Make public GDK_WINDOW_TYPE and GDK_WINDOW_DESTROYED use functions calls 2009-09-04 17:59:17 +02:00
gdkproperty.h
gdkrectangle.c Avoid integer overflow in gdk_rectangle_intersect 2010-01-22 09:41:17 +01:00
gdkregion-generic.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkregion-generic.h
gdkregion.h Small documentation fixes 2009-07-05 20:56:44 -04:00
gdkrgb.c
gdkrgb.h
gdkscreen.c Update documentation for ::monitors-changed to mention OS X support 2009-10-26 09:52:53 +01:00
gdkscreen.h Add gdk_screen_get_primary_monitor(). This fixes bug #601712 2009-12-08 11:27:02 -06:00
gdkselection.c
gdkselection.h Fix the return type of gdk_selection_property_get 2009-09-02 22:50:05 -04:00
gdkspawn.h
gdktestutils.h
gdktypes.h [gdk] Added GDK_GPOINTER_TO_NATIVE_WINDOW() macro 2009-11-10 20:15:37 +01:00
gdkvisual.c
gdkvisual.h
gdkwindow.c When native window requests button presses request other button related events 2010-01-20 15:37:16 +01:00
gdkwindow.h Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions 2009-10-14 03:13:52 +02:00
gdkwindowimpl.c
gdkwindowimpl.h Add supports_native_bg to GdkWindowImpl 2009-11-05 12:52:12 +01:00
gen-keyname-table.pl
keyname-table.h
keynames.txt
makeenums.pl
Makefile.am Make sure Gdk-2.0.gir is installed 2009-12-31 01:48:50 +01:00
makefile.msc Make more use of defines in $(TOP)/build/win32/make.msc 2009-07-13 09:45:04 +02:00
makegdkalias.pl
pltcheck.sh
testgdk.c Use G_STRLOC instead __LINE__ 2009-10-26 18:19:48 +01:00