2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Always call raise() before activateWindow().

This commit is contained in:
John Preston
2021-06-07 11:25:19 +04:00
parent 1886a5c4ed
commit 303ad02c61
8 changed files with 9 additions and 1 deletions

View File

@@ -916,6 +916,7 @@ void Notification::showReplyField() {
if (!_item) {
return;
}
raise();
activateWindow();
if (_replyArea) {
@@ -1039,6 +1040,7 @@ bool Notification::eventFilter(QObject *o, QEvent *e) {
if (e->type() == QEvent::MouseButtonPress) {
if (auto receiver = qobject_cast<QWidget*>(o)) {
if (isAncestorOf(receiver)) {
raise();
activateWindow();
}
}