1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

LibGUI: Retain Taskbar icon when toggling frameless setting

Reapply the app icon if the we are coming back from "frameless" mode.
This will re-initialize the icon representing the app in the task bar,
instead of displaying the default application icon.

This bug was visible in "Cube Demo" as well as the "Analog Clock".
This commit is contained in:
Brian Gianforcaro 2021-05-10 03:03:25 -07:00 committed by Andreas Kling
parent 1674d06f78
commit 79ccba908e

View file

@ -896,6 +896,9 @@ void Window::set_frameless(bool frameless)
if (!is_visible())
return;
WindowServerConnection::the().set_frameless(m_window_id, frameless);
if (!frameless)
apply_icon();
}
bool Window::is_maximized() const