1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

WindowServer: Add Window "modified" state

This will be used to track which windows contain some kind of unsaved
data that the user may want some help remembering to save. :^)
This commit is contained in:
Andreas Kling 2021-05-01 18:21:34 +02:00
parent 5c385d06e8
commit 492464f4c1
5 changed files with 41 additions and 1 deletions

View file

@ -76,6 +76,9 @@ public:
Window(Core::Object&, WindowType);
virtual ~Window() override;
bool is_modified() const { return m_modified; }
void set_modified(bool);
void popup_window_menu(const Gfx::IntPoint&, WindowMenuDefaultAction);
void handle_window_menu_action(WindowMenuAction);
void window_menu_activate_default();
@ -397,6 +400,7 @@ private:
int m_minimize_animation_step { -1 };
int m_progress { -1 };
bool m_should_show_menubar { true };
bool m_modified { false };
};
}