mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +00:00
LibGfx: Make Gfx::ShareableBitmap use anonymous files instead of shbufs
This commit is contained in:
parent
adb9ade88d
commit
633915e792
7 changed files with 38 additions and 32 deletions
|
@ -60,7 +60,7 @@ Notification::~Notification()
|
|||
void Notification::show()
|
||||
{
|
||||
auto connection = NotificationServerConnection::construct();
|
||||
auto icon = m_icon ? m_icon->to_shareable_bitmap(connection->server_pid()) : Gfx::ShareableBitmap();
|
||||
auto icon = m_icon ? m_icon->to_shareable_bitmap() : Gfx::ShareableBitmap();
|
||||
connection->send_sync<Messages::NotificationServer::ShowNotification>(m_text, m_title, icon);
|
||||
}
|
||||
|
||||
|
|
|
@ -777,13 +777,8 @@ void Window::apply_icon()
|
|||
if (!is_visible())
|
||||
return;
|
||||
|
||||
int rc = shbuf_seal(m_icon->shbuf_id());
|
||||
ASSERT(rc == 0);
|
||||
|
||||
rc = shbuf_allow_all(m_icon->shbuf_id());
|
||||
ASSERT(rc == 0);
|
||||
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowIconBitmap>(m_window_id, m_icon->to_shareable_bitmap(WindowServerConnection::the().server_pid()));
|
||||
auto icon = m_icon->to_shareable_bitmap();
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowIconBitmap>(m_window_id, icon);
|
||||
}
|
||||
|
||||
void Window::start_wm_resize()
|
||||
|
@ -977,7 +972,7 @@ void Window::update_cursor()
|
|||
m_effective_cursor = new_cursor;
|
||||
|
||||
if (m_custom_cursor)
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowCustomCursor>(m_window_id, m_custom_cursor->to_shareable_bitmap(WindowServerConnection::the().server_pid()));
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowCustomCursor>(m_window_id, m_custom_cursor->to_shareable_bitmap());
|
||||
else
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowCursor>(m_window_id, (u32)m_effective_cursor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue