2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improve focusing of shown layers.

This commit is contained in:
John Preston
2024-07-31 13:44:07 +02:00
parent 76314e3c03
commit cf896aeb13

View File

@@ -457,7 +457,11 @@ void SectionWidget::showFinished() {
showChildren();
showFinishedHook();
controller()->widget()->setInnerFocus();
if (isAncestorOf(window()->focusWidget())) {
setInnerFocus();
} else {
controller()->widget()->setInnerFocus();
}
}
rpl::producer<int> SectionWidget::desiredHeight() const {