diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-28 10:24:58 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-28 10:24:58 +0200 |
commit | d4892b3fdc36546545058a3e3c5a10d61be07c8e (patch) | |
tree | 064f779963495bb513af51e8d14b2da3b9e17344 /Applications/Taskbar/TaskbarWindow.cpp | |
parent | 841b2e5d1367b1b5638d13dbed155ec53914e015 (diff) | |
download | serenity-d4892b3fdc36546545058a3e3c5a10d61be07c8e.zip |
WindowServer+LibGUI: Remove old "icon path" way of doing things.
Now that we can set icons directly "by bitmap", there's no need for passing
around the icon paths anymore, so get rid of all the IPC and API related
to that. :^)
Diffstat (limited to 'Applications/Taskbar/TaskbarWindow.cpp')
-rw-r--r-- | Applications/Taskbar/TaskbarWindow.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp index 5623c7badf..c39ce4938f 100644 --- a/Applications/Taskbar/TaskbarWindow.cpp +++ b/Applications/Taskbar/TaskbarWindow.cpp @@ -86,25 +86,11 @@ void TaskbarWindow::wm_event(GWMEvent& event) #endif break; } - case GEvent::WM_WindowIconChanged: { - auto& changed_event = static_cast<GWMWindowIconChangedEvent&>(event); -#ifdef EVENT_DEBUG - dbgprintf("WM_WindowIconChanged: client_id=%d, window_id=%d, icon_path=%s\n", - changed_event.client_id(), - changed_event.window_id(), - changed_event.icon_path().characters()); -#endif - if (auto* window = WindowList::the().window(identifier)) { - window->set_icon_path(changed_event.icon_path()); - window->button()->set_icon(window->icon()); - } - break; - } case GEvent::WM_WindowIconBitmapChanged: { auto& changed_event = static_cast<GWMWindowIconBitmapChangedEvent&>(event); #ifdef EVENT_DEBUG - dbgprintf("WM_WindowIconChanged: client_id=%d, window_id=%d, icon_buffer_id=%d\n", + dbgprintf("WM_WindowIconBitmapChanged: client_id=%d, window_id=%d, icon_buffer_id=%d\n", changed_event.client_id(), changed_event.window_id(), changed_event.icon_buffer_id()); |