fix: system-context-menu should only fire in draggable regions (35-x-y) (#46178)
This commit is contained in:
parent
56f17662a5
commit
b13526ecd0
8 changed files with 66 additions and 17 deletions
|
@ -288,15 +288,6 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
|
|||
|
||||
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: {
|
||||
WINDOWPLACEMENT wp;
|
||||
wp.length = sizeof(WINDOWPLACEMENT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue