From f26145b7c3335f381ee105ebfa0b90b4da1a28a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Luis?= Date: Thu, 9 Apr 2026 19:50:16 -0300 Subject: [PATCH 1/2] fix: guiSetInputEnabled function now make the cursor visible --- Client/core/CGUI.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/Client/core/CGUI.cpp b/Client/core/CGUI.cpp index cdea4e32f9d..6ec44820021 100644 --- a/Client/core/CGUI.cpp +++ b/Client/core/CGUI.cpp @@ -774,22 +774,9 @@ bool CLocalGUI::InputGoesToGUI() if (!pGUI) return false; - bool shouldShowCursorForGUI = false; - if (pGUI->GetGUIInputEnabled()) - { - eInputMode inputMode = pGUI->GetGUIInputMode(); - if (inputMode == INPUTMODE_NO_BINDS_ON_EDIT) - { - shouldShowCursorForGUI = true; - } - else if (inputMode == INPUTMODE_NO_BINDS) - { - shouldShowCursorForGUI = false; - } - } - - return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || shouldShowCursorForGUI || - !CCore::GetSingleton().IsFocused() || IsWebRequestGUIVisible()); + return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || + pGUI->GetGUIInputEnabled() || !CCore::GetSingleton().IsFocused() || + IsWebRequestGUIVisible()); } void CLocalGUI::ForceCursorVisible(bool bVisible) From f97f7fc7f2ab5b23ead1a7e6ea1b7b8795d8b604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Luis?= Date: Fri, 10 Apr 2026 16:33:13 -0300 Subject: [PATCH 2/2] refactor: apply clang-format --- Client/core/CGUI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Client/core/CGUI.cpp b/Client/core/CGUI.cpp index 6ec44820021..32edce4e4e8 100644 --- a/Client/core/CGUI.cpp +++ b/Client/core/CGUI.cpp @@ -774,9 +774,8 @@ bool CLocalGUI::InputGoesToGUI() if (!pGUI) return false; - return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || - pGUI->GetGUIInputEnabled() || !CCore::GetSingleton().IsFocused() || - IsWebRequestGUIVisible()); + return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || pGUI->GetGUIInputEnabled() || + !CCore::GetSingleton().IsFocused() || IsWebRequestGUIVisible()); } void CLocalGUI::ForceCursorVisible(bool bVisible)