win: Correctly close popup menu

This commit is contained in:
Cheng Zhao 2017-12-21 15:26:32 +09:00
parent 459db92052
commit 088042841d
3 changed files with 23 additions and 7 deletions

View file

@ -25,6 +25,8 @@ class MenuViews : public Menu {
void ClosePopupAt(int32_t window_id) override;
private:
void OnClosed(int32_t window_id);
// window ID -> open context menu
std::map<int32_t, std::unique_ptr<views::MenuRunner>> menu_runners_;