mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-21 17:49:58 -05:00
Merge 1698386139 into 0e92a14703
This commit is contained in:
commit
a3be9b0273
|
|
@ -266,6 +266,10 @@ void RenderWidget::SetCursorLocked(bool locked, bool follow_aspect_ratio)
|
|||
if (locked)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// This will prevent the mouse from interacting with the task bar
|
||||
// while in windowed / borderless fullscreen.
|
||||
SetWindowPos((HWND) winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||
|
||||
RECT rect;
|
||||
rect.left = render_rect.left();
|
||||
rect.right = render_rect.right();
|
||||
|
|
@ -301,6 +305,7 @@ void RenderWidget::SetCursorLocked(bool locked, bool follow_aspect_ratio)
|
|||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
SetWindowPos((HWND) winId(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||
ClipCursor(nullptr);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user