Don't respond to hit tests from the Win32 window

This will let us detect other, non-wrapper windows to the right and to
the bottom of a plugin GUI. Useful for drag-and-drop so we don't end up
overriding Wine's internal drag-and-drop mechanism.
This commit is contained in:
Robbert van der Helm
2021-07-26 14:44:23 +02:00
parent 186a6c01a2
commit e1ed35bfd8
2 changed files with 19 additions and 4 deletions
+3 -3
View File
@@ -72,9 +72,9 @@ xcb_atom_t get_atom_by_name(xcb_connection_t& x11_connection,
/**
* Check if the cursor is within a Wine window. We can of course only detect
* Wine applications within the current prefix. This ignores the extended client
* area of yabridge windows (which might mean that this function will spuriously
* return false if another window on the bottom right of an editor window is
* 'obstructed' by this clipped, invisible window).
* area of yabridge windows. (so it will consider other Wine windows to the
* right or to the bottom of a yabridge plugin editor, but not the extended
* client area itself)
*/
bool is_cursor_in_wine_window() noexcept;