Windows mouse ungrab must release the mouse instead of confine it to the current desktop (#16488)

* Windows mouse ungrab should release the cursor, instead of confining it to the current screen.

* conform to style
pull/16494/head
Brad Smith 2024-05-04 09:10:57 -04:00 committed by GitHub
parent 28189a04a4
commit d55f95f056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1958,11 +1958,11 @@ void win32_clip_window(bool state)
free(info);
}
info = NULL;
ClipCursor(&clip_rect);
}
else
GetWindowRect(GetDesktopWindow(), &clip_rect);
ClipCursor(&clip_rect);
ClipCursor(NULL);
}
#endif