mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Fix freeze in IV due to cyclic focus request.
This commit is contained in:
@@ -342,9 +342,11 @@ void Controller::createWindow() {
|
|||||||
_window = std::make_unique<Ui::RpWindow>();
|
_window = std::make_unique<Ui::RpWindow>();
|
||||||
const auto window = _window.get();
|
const auto window = _window.get();
|
||||||
|
|
||||||
window->windowActiveValue(
|
base::qt_signal_producer(
|
||||||
) | rpl::filter([=](bool active) {
|
window->window()->windowHandle(),
|
||||||
return _webview && active;
|
&QWindow::activeChanged
|
||||||
|
) | rpl::filter([=] {
|
||||||
|
return _webview && window->window()->windowHandle()->isActive();
|
||||||
}) | rpl::start_with_next([=] {
|
}) | rpl::start_with_next([=] {
|
||||||
setInnerFocus();
|
setInnerFocus();
|
||||||
}, window->lifetime());
|
}, window->lifetime());
|
||||||
|
Reference in New Issue
Block a user