First recalculate the position and then show, to prevent blinking and moving while showing the notification

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
feat/with_dbus-1-tqt
Emanoil Kotsev 1 month ago
parent cbbef4ff57
commit 07e34bd0bb
No known key found for this signature in database
GPG Key ID: F1EEB8CD9FB16A50

@ -199,9 +199,9 @@ void NotificationsService::NotifyAsync(
if(mNotificationMap[nId]->isResident() && timeout != 0)
timeout = 0; // resident takes advantage of persistence)
mNotificationMap[nId]->setTimeout(timeout);
mNotificationMap[nId]->adjustSize();
mNotificationMap[nId]->raise();
mNotificationMap[nId]->show();
mNotificationMap[nId]->setActiveWindow();
// make sure we display the new notification above the older one
@ -217,6 +217,7 @@ void NotificationsService::NotifyAsync(
mNotificationMap[nId]->move( d->width()-mNotificationMap[nId]->width(),
d->height()-mNotificationMap[nId]->height());
}
mNotificationMap[nId]->show();
NotifyAsyncReply(asyncCallId, nId);
}

Loading…
Cancel
Save