mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix freeze in IV due to cyclic focus request.
This commit is contained in:
parent
179e81478e
commit
c9bd776d1e
1 changed files with 5 additions and 3 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Reference in a new issue