Fix titlebar position when switching to custom frame

This commit is contained in:
Ilya Fedin 2021-07-30 18:13:53 +04:00 committed by John Preston
parent 868f2671fa
commit 3f85ce53d6

View file

@ -153,8 +153,10 @@ void DefaultWindowHelper::init() {
window()->setAttribute(Qt::WA_TranslucentBackground); window()->setAttribute(Qt::WA_TranslucentBackground);
} }
window()->widthValue( rpl::combine(
) | rpl::start_with_next([=](int width) { window()->widthValue(),
_title->shownValue()
) | rpl::start_with_next([=](int width, bool shown) {
const auto area = resizeArea(); const auto area = resizeArea();
_title->setGeometry( _title->setGeometry(
area.left(), area.left(),