1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

WindowServer+NotificationServer: Vertical title bar for notifications

This patch adds a specialized window type for notifications. They now
have a title bar on the right-hand side, with a close button.

This removes the need for the "Done" button in notifications, giving us
a bit more horizontal space overall.

Design based on a mock-up from @xTibor :^)
This commit is contained in:
Andreas Kling 2020-03-30 17:00:23 +02:00
parent cbd7effd3b
commit 012a4eb0b5
7 changed files with 115 additions and 60 deletions

View file

@ -75,6 +75,7 @@ Window::Window(ClientConnection& client, WindowType window_type, int window_id,
m_wm_event_mask = WMEventMask::WindowStateChanges | WMEventMask::WindowRemovals | WMEventMask::WindowIconChanges;
m_listens_to_wm_events = true;
}
WindowManager::the().add_window(*this);
}