gtk2/gdk/win32
Peter Clifton 05e982a11a Win32: Fix _gdk_windowing_window_at_pointer to correctly return a toplevel
Commit 5ebb32d1ff didn't add the correct
code to find the toplevel window. The WindowFromPoint() function does
not return the toplevel window in the hierarchy, it returns the deepest
non-disabled, non-invisible child. As we don't use invisible or disabled
windows, we don't actually need to use the ChildWindowFromPoint walk for
the non get_toplevel case, so we can remove that code path.

To find a toplevel, we need to start from the desktop and work up, using
ChildWindowFromPointEx (to ignore invisible and disabled windows). If we
don't ignore invisible and disabled windows (as is the case with the
ChildWindowFromPoint call, we are liable to get returns of hidden or
disabled children of the desktop which don't belong to us, but notionally
occupy the same area under the pointer.

An alternative might be to start our walk with one of the children of the
desktop owned by our process and thread - which we can enumerate using,
the EnumThreadWindows call, or (presumably) determine internally. This
would not work when we are inside a GtkSocket though, as the children of
the desktop would belong to the process owning the GtkPlug - we would
have to rely on our own list of windows.

For correctness, this commit adds tests to ensure that we don't try to
return either x or y window coordinates if that corresponding pointer is
NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=658842
2011-11-10 17:40:50 +01:00
..
rc Update Windows Resource template information 2011-06-07 11:16:57 +08:00
bdfcursor.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
cursor.bdf Committing changes to the source bdf font file that I forgot to commit 2007-08-17 03:40:39 +00:00
gdkcursor-win32.c win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkdevice-win32.c Win32: Fix _gdk_windowing_window_at_pointer to correctly return a toplevel 2011-11-10 17:40:50 +01:00
gdkdevice-win32.h Merge the xi2-for-master branch 2010-05-25 18:38:44 -04:00
gdkdevice-wintab.c GdkDevice: Remove duplicate private function 2011-04-08 16:39:45 +02:00
gdkdevice-wintab.h Merge the xi2-for-master branch 2010-05-25 18:38:44 -04:00
gdkdevicemanager-win32.c Tweak include order a bit to get around compilation errors 2011-02-20 23:56:13 +02:00
gdkdevicemanager-win32.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkdisplay-win32.c Add G_ENABLE_DEBUG #ifdef check in gdkdisplay-win32.c 2011-11-10 17:40:49 +01:00
gdkdisplaymanager-win32.c gdk: fix gdk_keyval_to_lower/upper() for Quartz, Win32 and Broadway 2011-10-07 16:19:41 +02:00
gdkdnd-win32.c win32: no more GdkNativeWindow and related changes 2011-02-06 15:07:13 +01:00
gdkevents-win32.c win32: resurect Windows clipboard selection notification 2011-11-10 17:40:48 +01:00
gdkgeometry-win32.c win32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos 2011-11-10 17:40:47 +01:00
gdkglobals-win32.c Work on OLE2-based generic DND 2009-12-16 13:10:21 +02:00
gdkinput.c win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkkeys-win32.c Minor documentation improvements 2011-02-23 10:26:21 +01:00
gdkmain-win32.c win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkprivate-win32.h win32: resurect Windows clipboard selection notification 2011-11-10 17:40:48 +01:00
gdkproperty-win32.c win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkscreen-win32.c win32: no more GdkNativeWindow and related changes 2011-02-06 15:07:13 +01:00
gdkselection-win32.c win32: no more GdkNativeWindow and related changes 2011-02-06 15:07:13 +01:00
gdktestutils-win32.c win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkvisual-win32.c fix win32 build after removal of the colormap debug category 2011-01-21 11:20:16 +01:00
gdkwin32.h win32: no more GdkNativeWindow and related changes 2011-02-06 15:07:13 +01:00
gdkwin32cursor.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32display.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32displaymanager.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32dnd.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32id.c win32: no more GdkNativeWindow and related changes 2011-02-06 15:07:13 +01:00
gdkwin32keys.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32screen.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwin32window.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
gdkwindow-win32.c Win32: Ensure native back-end for windows where the user requests their handle 2011-11-10 17:40:49 +01:00
gdkwindow-win32.h win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
libwntab32x.la Add headers. Add section about ActiveIMM. 2001-11-08 20:57:18 +00:00
Makefile.am Install gdk/win32 headers 2011-08-15 13:00:14 +03:00
makefile.msc win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
pktdef.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
wintab.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
xcursors.h Bug 544684 - Win64 issue, window handles are assumed to be 32-bit 2008-08-04 23:21:36 +00:00