win: Don't emit right-clicked event when there is menu attached
This commit is contained in:
parent
58dee04d5c
commit
225140bd64
1 changed files with 4 additions and 2 deletions
|
@ -86,8 +86,10 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
|
||||||
NotifyClicked(gfx::Rect(rect), modifiers);
|
NotifyClicked(gfx::Rect(rect), modifiers);
|
||||||
return;
|
return;
|
||||||
} else if (!double_button_click) { // single right click
|
} else if (!double_button_click) { // single right click
|
||||||
NotifyRightClicked(gfx::Rect(rect), modifiers);
|
if (menu_model_)
|
||||||
PopContextMenu(cursor_pos);
|
PopContextMenu(cursor_pos);
|
||||||
|
else
|
||||||
|
NotifyRightClicked(gfx::Rect(rect), modifiers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue