1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:37:45 +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

@ -992,4 +992,13 @@ void Window::invalidate_menubar()
frame().invalidate();
}
void Window::set_modified(bool modified)
{
if (m_modified == modified)
return;
m_modified = modified;
invalidate();
}
}