Skip to content

Commit 806f990

Browse files
committed
Overlay: re-hide/re-show mouse cursor
seems to hide/show cursor fine for me, hoping it'll work fine on other machines
1 parent c9ebc87 commit 806f990

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/overlay/hooks_overlay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class WndprocHook : public Hook
122122
}
123123
else
124124
{
125-
if (!Settings::OverlayEnabled && Settings::WindowedHideMouseCursor)
125+
if (Settings::WindowedHideMouseCursor)
126126
{
127127
if (msg == WM_SETFOCUS || (msg == WM_ACTIVATE && lParam != WA_INACTIVE))
128128
{

src/overlay/server_notifications.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class ServerUpdater
6666
catch (const std::exception& e)
6767
{
6868
}
69+
70+
if (Settings::OverlayNotifyOnlineUpdateTime < 10)
71+
Settings::OverlayNotifyOnlineUpdateTime = 10; // pls don't hammer us
72+
6973
std::this_thread::sleep_for(std::chrono::seconds(Settings::OverlayNotifyOnlineUpdateTime));
7074
}
7175
}

src/plugin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace Settings
122122
inline float OverlayFontScale = 1.5f;
123123
inline int OverlayNotifyDisplayTime = 7;
124124
inline bool OverlayNotifyOnlineEnable = true;
125-
inline int OverlayNotifyOnlineUpdateTime = 10;
125+
inline int OverlayNotifyOnlineUpdateTime = 20;
126126
inline int OverlayNotifyHideMode = 1;
127127

128128
enum NotifyHideMode

0 commit comments

Comments
 (0)