Skip to content

Commit

Permalink
fix gui2::tlabel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gfgtdf committed Jun 21, 2015
1 parent e8140d8 commit cbd0838
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/gui/widgets/label.cpp
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit cbd0838

Please sign in to comment.