Send the event to the proper widget.

Fixes bug #14434.
This commit is contained in:
Mark de Wever 2009-10-04 07:20:12 +00:00
parent 207ae7c28b
commit 160dcb2d37

View File

@ -954,7 +954,7 @@ void tevent_handler::button_up(twidget* mouse_over, tmouse_button& button)
button.is_down = false;
if(button.focus) {
get_window().fire(button.button_up_, *mouse_over);
get_window().fire(button.button_up_, *button.focus);
}
if(mouse_captured_) {