Fix a crash while updating window extents
This commit is contained in:
parent
3dbf58c45f
commit
c499a437f8
1 changed files with 1 additions and 1 deletions
|
|
@ -262,10 +262,10 @@ void DefaultWindowHelper::init() {
|
||||||
Qt::WindowStates windowState) {
|
Qt::WindowStates windowState) {
|
||||||
if (const auto handle = window()->windowHandle()) {
|
if (const auto handle = window()->windowHandle()) {
|
||||||
handle->setFlag(Qt::FramelessWindowHint, titleShown);
|
handle->setFlag(Qt::FramelessWindowHint, titleShown);
|
||||||
|
updateWindowExtents();
|
||||||
} else {
|
} else {
|
||||||
window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
|
window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
|
||||||
}
|
}
|
||||||
updateWindowExtents();
|
|
||||||
}, window()->lifetime());
|
}, window()->lifetime());
|
||||||
|
|
||||||
window()->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
|
window()->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue