Skip to content

Commit

Permalink
fix notification crash
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Oct 5, 2023
1 parent f7b96c5 commit 74e9252
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 74e9252

Please sign in to comment.