WindowServer+Base: Show alternate close button for "modified" windows

Windows that are marked as modified will now have another (themable)
close button. This gives an additional visual clue that some action
will be required by the user before the window gets closed.

The default window-close-modified icon is an "X" with "..." underneath,
building on the established use of "..." in menus to signify that
additional user input will be required before an action is completed.
This commit is contained in:
Andreas Kling 2021-05-02 14:01:04 +02:00
commit f052a66c5d
Notes: sideshowbarker 2024-07-18 18:47:09 +09:00
8 changed files with 13 additions and 2 deletions

View file

@ -998,6 +998,7 @@ void Window::set_modified(bool modified)
return;
m_modified = modified;
frame().set_button_icons();
frame().invalidate_titlebar();
}