1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 06:25:07 +00:00

LibGUI: Add on_activity_change function to Window

Reports changes on the active/inactive state of a window.
This commit is contained in:
thankyouverycool 2020-07-13 19:14:44 -04:00 committed by Andreas Kling
parent 7739497e34
commit dc716194c8
2 changed files with 3 additions and 0 deletions

View file

@ -98,6 +98,7 @@ public:
};
Function<CloseRequestDecision()> on_close_request;
Function<void(const bool is_active)> on_activity_change;
int x() const { return rect().x(); }
int y() const { return rect().y(); }