Skip to content

Commit

Permalink
GUI2/Distributor: silence an unhandled event warning
Browse files Browse the repository at this point in the history
I did notice this seemed able to arise after 555d8b6 and/or 0571fef,
but these have never really been issues to worry about.
  • Loading branch information
Vultraz committed Oct 13, 2020
1 parent 209b525 commit c6bda4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/core/event/distributor.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c6bda4f

Please sign in to comment.