mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
WindowServer: Notify WM clients when a window's modified state changes
Also update the window switcher for good measure. The window switcher doesn't visualize this information at the moment, but we generally do this when any window state changes.
This commit is contained in:
parent
a47d576e94
commit
1f24ab91f2
3 changed files with 10 additions and 0 deletions
|
@ -375,6 +375,14 @@ static bool window_type_has_title(WindowType type)
|
|||
return type == WindowType::Normal || type == WindowType::ToolWindow;
|
||||
}
|
||||
|
||||
void WindowManager::notify_modified_changed(Window& window)
|
||||
{
|
||||
if (m_switcher.is_visible())
|
||||
m_switcher.refresh();
|
||||
|
||||
tell_wms_window_state_changed(window);
|
||||
}
|
||||
|
||||
void WindowManager::notify_title_changed(Window& window)
|
||||
{
|
||||
if (!window_type_has_title(window.type()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue