summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-05-10 03:03:25 -0700
committerAndreas Kling <kling@serenityos.org>2021-05-10 12:36:05 +0200
commit79ccba908e6270323a30826abcc8076f473c0162 (patch)
tree78944f3b7ddd30df547aa8e64861110070d25241
parent1674d06f78b0fecbc7bdb7ec9302d2d7ab4d0b12 (diff)
downloadserenity-79ccba908e6270323a30826abcc8076f473c0162.zip
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".
-rw-r--r--Userland/Libraries/LibGUI/Window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp
index ef329da64d..feeeb5a88b 100644
--- a/Userland/Libraries/LibGUI/Window.cpp
+++ b/Userland/Libraries/LibGUI/Window.cpp
@@ -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