Make DisableSystemWindowResize consistent with getting winId on macOS

This commit is contained in:
Ilya Fedin 2022-05-26 17:05:19 +04:00 committed by John Preston
parent a812ae65a4
commit 549edbe5c7

View file

@ -92,7 +92,7 @@ void IgnoreAllActivation(not_null<QWidget*> widget) {
}
void DisableSystemWindowResize(not_null<QWidget*> widget, QSize ratio) {
const auto winId = widget->window()->winId();
const auto winId = widget->winId();
if (const auto view = reinterpret_cast<NSView*>(winId)) {
if (const auto window = [view window]) {
window.styleMask &= ~NSWindowStyleMaskResizable;