fix: system-context-menu with frameless BrowserWindows (#43243)
This commit is contained in:
parent
1a6563fb66
commit
0718c2b9ee
1 changed files with 9 additions and 0 deletions
|
@ -288,6 +288,15 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
case WM_RBUTTONUP: {
|
||||||
|
if (!has_frame()) {
|
||||||
|
bool prevent_default = false;
|
||||||
|
NotifyWindowSystemContextMenu(GET_X_LPARAM(l_param),
|
||||||
|
GET_Y_LPARAM(l_param), &prevent_default);
|
||||||
|
return prevent_default;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
case WM_GETMINMAXINFO: {
|
case WM_GETMINMAXINFO: {
|
||||||
WINDOWPLACEMENT wp;
|
WINDOWPLACEMENT wp;
|
||||||
wp.length = sizeof(WINDOWPLACEMENT);
|
wp.length = sizeof(WINDOWPLACEMENT);
|
||||||
|
|
Loading…
Reference in a new issue