(svn r20552) -Fix: Never show tooltips when the mouse cursor is outside the window.
This commit is contained in:
@@ -2275,7 +2275,7 @@ void HandleMouseEvents()
|
||||
static Point hover_pos = {0, 0};
|
||||
|
||||
if (_settings_client.gui.hover_delay > 0) {
|
||||
if (click != MC_NONE || mousewheel != 0 || _left_button_down || _right_button_down ||
|
||||
if (!_cursor.in_window || click != MC_NONE || mousewheel != 0 || _left_button_down || _right_button_down ||
|
||||
hover_pos.x == 0 || abs(_cursor.pos.x - hover_pos.x) >= MAX_OFFSET_HOVER ||
|
||||
hover_pos.y == 0 || abs(_cursor.pos.y - hover_pos.y) >= MAX_OFFSET_HOVER) {
|
||||
hover_pos = _cursor.pos;
|
||||
|
Reference in New Issue
Block a user