mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
dont resize on taskbar resize if resizable is false
This commit is contained in:
@@ -165,6 +165,13 @@ bool NativeWindowViews::PreHandleMSG(
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case WM_WINDOWPOSCHANGING: {
|
||||
auto window_pos = reinterpret_cast<LPWINDOWPOS>(l_param);
|
||||
if (window_pos->flags | SWP_FRAMECHANGED)
|
||||
return !CanResize();
|
||||
|
||||
return false;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user