Skip to content

GdkWin32: Fix mouse events in presence of transparent windows on the desktop

Unlike ChildWindowFromPoint(Ex), WindowFromPoint finds exactly which window receives mouse input.

For example, mouse input on transparent areas of layered windows goes to the windows underneath. WindowFromPoint is able to detect that and continues searching in the windows underneath. The other API's instead return the layered window, which is not what we want.

Always use WindowFromPoint to detect which window gets mouse input at a specific location.

This MR is a comprehensive fix for all known issues related to pointer events on Windows.

Fixes: #370 (closed), #417 (closed), gimp#1082 (closed)

Edited by Luca Bacci

Merge request reports