Move check for cursor within Wine window to editor

We'll reuse this for the LeaveNotify check instead to avoid having to
ignore all `NonVirtual` events.
This commit is contained in:
Robbert van der Helm
2021-07-26 13:59:55 +02:00
parent 0523a06ed7
commit 85264a759d
3 changed files with 40 additions and 23 deletions
+9
View File
@@ -69,6 +69,15 @@ constexpr char xdnd_aware_property_name[] = "XdndAware";
xcb_atom_t get_atom_by_name(xcb_connection_t& x11_connection,
const char* atom_name);
/**
* 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).
*/
bool is_cursor_in_wine_window() noexcept;
/**
* Used to store the maximum width and height of a screen.
*/