Dec. 6, 2023
8:48 a.m.
On Wed Dec 6 14:04:49 2023 +0000, Alexandros Frantzis wrote: > > The last point required some code refactoring (see new functions > wayland_surface_calc_constraint and wayland_pointer_update_constraint, > to make the constraints related functionality available outside of > wayland_pointer.c and in a manner that allows us to still avoid double > locking of wayland_surface/wayland_pointer. > Although, as I write this I wonder if instead of this refactoring I > could just reapply the cursor clip (like I have done on pointer enter), > and basically get the same effect... hmmm... OK, so v3: * Reapply the clip with NtUserClipCursor() when the foreground window changes size (instead of using pointer internal functions), which allows us to not expose related functions from `wayland_pointer.c` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4593#note_55212