aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/Ui/RendererWidgetBase.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-05-14 16:34:31 +0200
committerGitHub <noreply@github.com>2023-05-14 16:34:31 +0200
commit22202be3946b5cb65511059e717af449168812f3 (patch)
tree2a522674dec0f12dc10e851c56f3969f91b6e943 /src/Ryujinx/Ui/RendererWidgetBase.cs
parent17ba217940aa287821bd8f1e5d93e22b58998617 (diff)
[GUI] Fix always hide cursor mode not hiding the cursor until it was moved (#4927)1.1.800
* gtk: Add missing isMouseInClient check for hide-cursor * ava: Add missing events and default isCursorInRenderer to true This is necessary because we don't receive a initial PointerEnter event for some reason.
Diffstat (limited to 'src/Ryujinx/Ui/RendererWidgetBase.cs')
-rw-r--r--src/Ryujinx/Ui/RendererWidgetBase.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/Ryujinx/Ui/RendererWidgetBase.cs b/src/Ryujinx/Ui/RendererWidgetBase.cs
index 0fa7240b..573b69b3 100644
--- a/src/Ryujinx/Ui/RendererWidgetBase.cs
+++ b/src/Ryujinx/Ui/RendererWidgetBase.cs
@@ -321,27 +321,27 @@ namespace Ryujinx.Ui
_toggleDockedMode = toggleDockedMode;
- if (ConfigurationState.Instance.Hid.EnableMouse.Value)
+ if (_isMouseInClient)
{
- if (_isMouseInClient)
+ if (ConfigurationState.Instance.Hid.EnableMouse.Value)
{
Window.Cursor = _invisibleCursor;
}
- }
- else
- {
- switch (_hideCursorMode)
+ else
{
- case HideCursorMode.OnIdle:
- long cursorMoveDelta = Stopwatch.GetTimestamp() - _lastCursorMoveTime;
- Window.Cursor = (cursorMoveDelta >= CursorHideIdleTime * Stopwatch.Frequency) ? _invisibleCursor : null;
- break;
- case HideCursorMode.Always:
- Window.Cursor = _invisibleCursor;
- break;
- case HideCursorMode.Never:
- Window.Cursor = null;
- break;
+ switch (_hideCursorMode)
+ {
+ case HideCursorMode.OnIdle:
+ long cursorMoveDelta = Stopwatch.GetTimestamp() - _lastCursorMoveTime;
+ Window.Cursor = (cursorMoveDelta >= CursorHideIdleTime * Stopwatch.Frequency) ? _invisibleCursor : null;
+ break;
+ case HideCursorMode.Always:
+ Window.Cursor = _invisibleCursor;
+ break;
+ case HideCursorMode.Never:
+ Window.Cursor = null;
+ break;
+ }
}
}
}