summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Window.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-01 18:21:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-01 19:42:29 +0200
commit492464f4c1d3f90ff1a31f0a0c133091748603c2 (patch)
tree5bc52ed7a3b5bc3ecfc9e7614382c27397cf2b0d /Userland/Services/WindowServer/Window.h
parent5c385d06e8eb548902252d98775b8cb8d3f0270c (diff)
downloadserenity-492464f4c1d3f90ff1a31f0a0c133091748603c2.zip
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. :^)
Diffstat (limited to 'Userland/Services/WindowServer/Window.h')
-rw-r--r--Userland/Services/WindowServer/Window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/Window.h b/Userland/Services/WindowServer/Window.h
index 4d44fe290b..13fee234d2 100644
--- a/Userland/Services/WindowServer/Window.h
+++ b/Userland/Services/WindowServer/Window.h
@@ -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 };
};
}