1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:38:12 +00:00

NotificationServer: Reposition notifications on screen resolution change

Previously notifications were (partially) drawn outside the screen rect if
they were created before changing the screen resolution to smaller
dimensions. This prevented the user from dismissing the notification as the
close button was no longer clickable.
This commit is contained in:
Laria Carolin Chabowski 2021-01-02 22:43:13 +01:00 committed by Andreas Kling
parent 2caf4e66ea
commit fc2c5c373b
3 changed files with 7 additions and 1 deletions

View file

@ -41,7 +41,7 @@ namespace NotificationServer {
static Vector<RefPtr<NotificationWindow>> s_windows;
static void update_notification_window_locations()
void update_notification_window_locations()
{
Gfx::IntRect last_window_rect;
for (auto& window : s_windows) {