WindowServer+Taskbar: Send WM icon updates as Gfx::ShareableBitmap

Window icons in Taskbar were previously received in WM events with
shbuf ID's. Now that Gfx::ShareableBitmap is backed by anonymous files,
we can easily switch to using those.
This commit is contained in:
Andreas Kling 2021-01-15 23:13:24 +01:00
commit 333366a99d
Notes: sideshowbarker 2024-07-18 23:48:03 +09:00
9 changed files with 17 additions and 35 deletions

View file

@ -777,8 +777,7 @@ void Window::apply_icon()
if (!is_visible())
return;
auto icon = m_icon->to_shareable_bitmap();
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowIconBitmap>(m_window_id, icon);
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowIconBitmap>(m_window_id, m_icon->to_shareable_bitmap());
}
void Window::start_wm_resize()