Make DisableSystemWindowResize consistent with getting winId on macOS
This commit is contained in:
parent
a812ae65a4
commit
549edbe5c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue