fix gui2::tlabel

previous labels captured the mouse after clicking on it (I don't know
why). This means that you had to to do another click after selecting
something different. This was specially annyoing an toggle_panels where
you'd often click on a label.

Maybe it was related to link labels, in any case this fixed the much
more common non-link labels.
This commit is contained in:
gfgtdf 2015-06-21 20:37:37 +02:00
parent e8140d8248
commit cbd0838b3d

View file

@ -160,7 +160,6 @@ void tlabel::signal_handler_left_button_click(const event::tevent /* event */, b
return; return;
} }
get_window()->mouse_capture();
tpoint mouse = get_mouse_position(); tpoint mouse = get_mouse_position();
@ -191,8 +190,6 @@ void tlabel::signal_handler_right_button_click(const event::tevent /* event */,
return ; // without marking event as "handled". return ; // without marking event as "handled".
} }
get_window()->mouse_capture();
tpoint mouse = get_mouse_position(); tpoint mouse = get_mouse_position();
mouse.x -= get_x(); mouse.x -= get_x();