mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Force focus on parent widget on story show.
This commit is contained in:
parent
e41fc69513
commit
fc0902adf0
1 changed files with 1 additions and 0 deletions
|
@ -3063,6 +3063,7 @@ bool OverlayWidget::takeFocusFrom(not_null<QWidget*> window) const {
|
||||||
void OverlayWidget::activate() {
|
void OverlayWidget::activate() {
|
||||||
_window->raise();
|
_window->raise();
|
||||||
_window->activateWindow();
|
_window->activateWindow();
|
||||||
|
setFocus();
|
||||||
QApplication::setActiveWindow(_window);
|
QApplication::setActiveWindow(_window);
|
||||||
setFocus();
|
setFocus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue