fix notification crash

This commit is contained in:
Martin Rotter 2023-10-05 10:49:24 +02:00
parent f7b96c5056
commit 74e9252d99
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ void ToastNotificationsManager::showNotification(Notification::Event event,
hookNotification(notif);
}
auto* screen = moveToProperScreen(notif);
// Insert new notification into free space.
notif->show();
auto* screen = moveToProperScreen(notif);
auto notif_new_pos = cornerForNewNotification(screen->availableGeometry());
// Make sure notification is finally resized.