From 07e34bd0bb9ed625fdbb0efc8cbd5facb254e3d2 Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Wed, 3 Dec 2025 12:59:28 +0000 Subject: [PATCH] First recalculate the position and then show, to prevent blinking and moving while showing the notification Signed-off-by: Emanoil Kotsev --- src/daemon/NotificationsService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon/NotificationsService.cpp b/src/daemon/NotificationsService.cpp index 07cd3bf..af95614 100644 --- a/src/daemon/NotificationsService.cpp +++ b/src/daemon/NotificationsService.cpp @@ -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); }