diff --git a/client/gui/CIntObject.h b/client/gui/CIntObject.h index 6536376e8..adffdfde6 100644 --- a/client/gui/CIntObject.h +++ b/client/gui/CIntObject.h @@ -98,6 +98,7 @@ public: void showAll(Canvas & to) override; //request complete redraw of this object void redraw() override; + /// returns true if this element is a popup window /// called only for windows bool isPopupWindow() const override; diff --git a/client/gui/EventDispatcher.cpp b/client/gui/EventDispatcher.cpp index 3a7222520..4c9dc9726 100644 --- a/client/gui/EventDispatcher.cpp +++ b/client/gui/EventDispatcher.cpp @@ -213,7 +213,7 @@ void EventDispatcher::handleLeftButtonClick(const Point & position, int toleranc if( i->receiveEvent(position, AEventsReceiver::LCLICK) || i == nearestElement) { if(isPressed) - i->clickReleased(position, lastActivated); + i->clickPressed(position, lastActivated); if (i->mouseClickedState && !isPressed) i->clickReleased(position, lastActivated);