1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:27:43 +00:00

Notification: Give a unique internal ID

This will allow us to later query the notifications from a connection
and safely update it without exposing it to any other applications, as
it is session based.
This commit is contained in:
Nick Johnson 2021-03-11 13:59:37 -06:00 committed by Andreas Kling
parent 7351c77a42
commit a437430294
3 changed files with 13 additions and 8 deletions

View file

@ -40,9 +40,10 @@ public:
void set_original_rect(Gfx::IntRect original_rect) { m_original_rect = original_rect; };
private:
NotificationWindow(const String& text, const String& title, const Gfx::ShareableBitmap&);
NotificationWindow(i32 client_id, const String& text, const String& title, const Gfx::ShareableBitmap&);
Gfx::IntRect m_original_rect;
i32 m_id;
};
}