From 79ccba908e6270323a30826abcc8076f473c0162 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Mon, 10 May 2021 03:03:25 -0700 Subject: 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". --- Userland/Libraries/LibGUI/Window.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland/Libraries') 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 -- cgit v1.2.3