We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6648aaa commit f111387Copy full SHA for f111387
6 files changed
src/shell/contextmenu/contextmenu.cc
@@ -291,6 +291,7 @@ menu menu::construct_with_hmenu(
291
}
292
293
m.parent_window = hWnd;
294
+ m.native_handle = hMenu;
295
m.is_top_level = is_top;
296
return m;
297
src/shell/contextmenu/contextmenu.h
@@ -16,6 +16,7 @@ struct menu_render;
16
struct menu {
17
std::vector<menu_item> items;
18
void *parent_window = nullptr;
19
+ void *native_handle = nullptr;
20
bool is_top_level = false;
21
22
static menu
@@ -56,4 +57,4 @@ struct menu_item {
56
57
std::optional<std::string> name_resid;
58
std::optional<std::string> origin_name;
59
};
-} // namespace mb_shell
60
+} // namespace mb_shell
0 commit comments