At the moment, `ClipCursor()` sent to winemac with parameter `reset`=1 is ignored. This doesn't seem to match other drivers' behavior (e.g. winex11 does unclip if `reset`=1, and winewayland simply doesn't care about the value). It causes problem in following steps: - App (typically a game) enters fullscreen, with a display mode change. - Display mode changes, triggering cursor clipping for fullscreen. - App then leaves fullscreen, supposed to have cursor clipping reset, _but nothing happened_. - UNEXPECTED BEHAVIOR 1: Cursor remains confined in windowed mode. - App enters fullscreen again, with a display mode change identical to previous one. - UNEXPECTED BEHAVIOR 2: Clip rect shrinks to previous size of windowed mode, instead of fullscreen size. The second unexpected behavior is actually a side effect of the first one. Currently `[NSWindow setMouseConfinementRect]` is used to implement cursor clipping, and it doesn't handle window resizing "properly": the clip rect always becomes the minimum of size before and after resizing. Interestingly when app enter fullscreen again, a second `ClipCursor()` will be sent to winemac and overwrite clip rect (unclip and clip again), but it can still be skipped if the clip rect is identical to the previous one. Anyway these won't happen if `reset` is properly handled in the first place. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10613