diff options
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index c7d7fd8a1..52abd30b6 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -70,6 +70,7 @@ #include "gui/sdlinput.h" #include "gui/theme.h" #include "gui/viewport.h" +#include "gui/windowmanager.h" #include "gui/fonts/font.h" @@ -78,6 +79,7 @@ #include "client.h" #include "configuration.h" #include "dragdrop.h" +#include "settings.h" #include "touchmanager.h" #include "events/keyevent.h" @@ -463,7 +465,7 @@ void Gui::draw() int mouseY; const MouseStateType button = getMouseState(&mouseX, &mouseY); - if ((client->getMouseFocused() || button & SDL_BUTTON(1)) + if ((settings.mouseFocused || button & SDL_BUTTON(1)) && mMouseCursors && mCustomCursor && mMouseCursorAlpha > 0.0F) { const Image *const image = dragDrop.getItemImage(); |