win: Don't emit right-clicked event when there is menu attached

This commit is contained in:
Cheng Zhao 2015-08-10 12:52:55 +08:00
parent 58dee04d5c
commit 225140bd64

View file

@ -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);
} }
} }