From cbd0838b3d004692a288ad866c847d1ee65cf9f6 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Sun, 21 Jun 2015 20:37:37 +0200 Subject: [PATCH] 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. --- src/gui/widgets/label.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 0a41d503a70b..ebe6666bb7fa 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -160,7 +160,6 @@ void tlabel::signal_handler_left_button_click(const event::tevent /* event */, b return; } - get_window()->mouse_capture(); 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". } - get_window()->mouse_capture(); - tpoint mouse = get_mouse_position(); mouse.x -= get_x();