Fix titlebar position when switching to custom frame
This commit is contained in:
parent
868f2671fa
commit
3f85ce53d6
1 changed files with 4 additions and 2 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue