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 Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
COPYING [ Merges from gtk-1-2 ] 1999-09-28 20:19:13 +00:00
gdk.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdk.h Add gdk_threads_add_timeout_seconds{_full} 2008-07-31 22:11:44 +00:00
gdk.symbols Try harder to handle accelerators involving virtual modifiers 2009-12-21 11:15:28 -05:00
gdkapplaunchcontext.c Typo fixes and small doc improvements 2008-12-26 04:20:28 +00:00
gdkapplaunchcontext.h fix typo in the type name so the macro becomes usable. 2008-10-15 15:50:10 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
gdkconfig.h.win32 Define GDK_NATIVE_WINDOW_POINTER on 32-bit Windows, too. It just makes 2008-08-04 22:20:53 +00:00
gdkcursor.c Update docs on blank cursors 2009-01-20 02:27:57 +00:00
gdkcursor.h Cache cursors to avoid libXcursor theme lookup overhead. 2009-01-20 02:15:59 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
gdkdnd.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkdnd.h Bug 544684 - Win64 issue, window handles are assumed to be 32-bit 2008-08-04 22:35:16 +00:00
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 Use templates for glib-mkenums calls instead of complicated commandlines 2007-11-26 17:32:19 +00:00
gdkenumtypes.h.template do not hard code the prefix of the enum, use @ENUMPREFIX@ instead (you 2008-06-23 12:09:15 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
gdkkeynames.c Revert name change 2008-07-01 22:57:50 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
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 Revert name change 2008-07-01 22:57:50 +00:00
gdkpixbuf-drawable.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkpixbuf-render.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkpixbuf.h Revert name change 2008-07-01 22:57:50 +00:00
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 Merge no-flicker branch into HEAD 2000-03-28 01:24:44 +00:00
gdkpolyreg-generic.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkprivate.h Make public GDK_WINDOW_TYPE and GDK_WINDOW_DESTROYED use functions calls 2009-09-04 17:59:17 +02:00
gdkproperty.h Revert name change 2008-07-01 22:57:50 +00:00
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 Handle a borderline case correctly 2007-04-18 15:19:58 +00:00
gdkregion.h Small documentation fixes 2009-07-05 20:56:44 -04:00
gdkrgb.c use g_error() instead of a combination of g_warning+exit to avoid 2008-08-07 14:23:07 +00:00
gdkrgb.h Revert name change 2008-07-01 22:57:50 +00:00
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 Bug 544684 - Win64 issue, window handles are assumed to be 32-bit 2008-08-04 22:43:57 +00:00
gdkselection.h Fix the return type of gdk_selection_property_get 2009-09-02 22:50:05 -04:00
gdkspawn.h define __GDK_H_INSIDE__ around including all other headers. 2008-05-28 14:01:57 +00:00
gdktestutils.h gdk/gdkapplaunchcontext.h gdk/gdktestutils.h gtk/gtkmountoperation.h 2008-05-30 12:08:30 +00:00
gdktypes.h [gdk] Added GDK_GPOINTER_TO_NATIVE_WINDOW() macro 2009-11-10 20:15:37 +01:00
gdkvisual.c Revert name change 2008-07-01 22:57:50 +00:00
gdkvisual.h Revert name change 2008-07-01 22:57:50 +00:00
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 Fix make check 2008-07-04 04:02:35 +00:00
gdkwindowimpl.h Add supports_native_bg to GdkWindowImpl 2009-11-05 12:52:12 +01:00
gen-keyname-table.pl Generate N_() calls for translatable key names. 2005-06-10 06:41:04 +00:00
keyname-table.h fix small typo. 2008-10-28 22:55:23 +00:00
keynames.txt Mark arrow keys as translatable 2006-12-21 05:11:00 +00:00
makeenums.pl Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
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 Make PLT-reduction work with gcc4, and don't include everything in 2005-03-16 03:17:27 +00:00
pltcheck.sh Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
testgdk.c Use G_STRLOC instead __LINE__ 2009-10-26 18:19:48 +01:00