I keep pushing too fast
This commit is contained in:
@@ -467,6 +467,7 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||||||
} break;
|
} break;
|
||||||
case WM_SIZE: {
|
case WM_SIZE: {
|
||||||
if (this->ui_.windowLayout) {
|
if (this->ui_.windowLayout) {
|
||||||
|
if (this->hasCustomWindowFrame() && !this->frameless_) {
|
||||||
if (msg->wParam == SIZE_MAXIMIZED) {
|
if (msg->wParam == SIZE_MAXIMIZED) {
|
||||||
auto offset = int(this->getScale() * 8);
|
auto offset = int(this->getScale() * 8);
|
||||||
|
|
||||||
@@ -475,6 +476,7 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||||||
this->ui_.windowLayout->setContentsMargins(0, 1, 0, 0);
|
this->ui_.windowLayout->setContentsMargins(0, 1, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return QWidget::nativeEvent(eventType, message, result);
|
return QWidget::nativeEvent(eventType, message, result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user