summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 8d96cfde3..ba7a0de06 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -438,8 +438,8 @@ void Gui::draw()
const uint8_t button = SDL_GetMouseState(&mouseX, &mouseY);
#ifdef USE_SDL2
- if (button & SDL_BUTTON(1) && mMouseCursors && mCustomCursor
- && mMouseCursorAlpha > 0.0f)
+ // +++ need check also is window have mouse focus SDL_GetMouseFocus
+ if (mMouseCursors && mCustomCursor && mMouseCursorAlpha > 0.0f)
#else
if ((SDL_GetAppState() & SDL_APPMOUSEFOCUS || button & SDL_BUTTON(1))
&& mMouseCursors && mCustomCursor && mMouseCursorAlpha > 0.0f)