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

Notification: Allow getting window by ID

This is a neccessity so a connection can get the notification it is
connected to for later updates.
This commit is contained in:
Nick Johnson 2021-03-11 14:09:37 -06:00 committed by Andreas Kling
parent a437430294
commit f2814dd6c1
2 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,8 @@ public:
virtual ~NotificationWindow() override;
void set_original_rect(Gfx::IntRect original_rect) { m_original_rect = original_rect; };
static RefPtr<NotificationWindow> get_window_by_id(i32 id);
private:
NotificationWindow(i32 client_id, const String& text, const String& title, const Gfx::ShareableBitmap&);