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:
parent
2caf4e66ea
commit
fc2c5c373b
3 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue