GUI2/Distributor: silence an unhandled event warning

I did notice this seemed able to arise after 555d8b667d and/or 0571fefda3,
but these have never really been issues to worry about.
This commit is contained in:
Charles Dang 2020-10-14 01:41:38 +11:00
parent 209b525f67
commit c6bda4f936

View file

@ -461,8 +461,10 @@ void mouse_button<T>::signal_handler_sdl_button_up(const event::ui_event event,
DBG_GUI_E << LOG_HEADER << event << ".\n";
if(!is_down_) {
#ifdef GUI2_SHOW_UNHANDLED_EVENT_WARNINGS
WRN_GUI_E << LOG_HEADER << event
<< ". The mouse button is already up, we missed an event.\n";
#endif
return;
}
is_down_ = false;