[client] ds: detect when the cursor exits into an overlapping window

This adds a new method to the display server interface to allow the
application to notify the ds when there is a guest cursor position
update along with the translated local guest cursor position. This makes
it possible for the display server to keep the local cursor position in
sync with the guest cursor so that window leave events can be detected
when the cursor would move into an overlapping window.

Wayland currently just has a stub for this, and the X11 implementation
still needs some minor tweaking.
This commit is contained in:
Geoffrey McRae committed 2021-05-04 06:35:36 +10:00
1 parent cd56321e65
commit d0a12f6097
11 files changed
+122 -54

No files matched your search

+7
View File
@@ -33,4 +33,11 @@ bool util_guestCurToLocal(struct DoublePoint *local);
void util_localCurToGuest(struct DoublePoint *guest);
void util_rotatePoint(struct DoublePoint *point);
static inline double util_clamp(double x, double min, double max)
{
if (x < min) return min;
if (x > max) return max;
return x;
}
#endif