dont resize on taskbar resize if resizable is false

This commit is contained in:
Heilig Benedek 2017-11-12 07:09:25 +01:00
parent 9c217fc6c7
commit 7a7f1ee711

View file

@ -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;
}