mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibGUI: Hold on to notification icon until NotificationServer responds
This broke when switching IPC messages to support move-only types. This pattern is not ideal, but the real fix for this will be using fd passing instead of shbufs. Fixes #4955.
This commit is contained in:
parent
a51fbb13e8
commit
b8c3ea8b30
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ Notification::~Notification()
|
||||||
void Notification::show()
|
void Notification::show()
|
||||||
{
|
{
|
||||||
auto connection = NotificationServerConnection::construct();
|
auto connection = NotificationServerConnection::construct();
|
||||||
connection->send_sync<Messages::NotificationServer::ShowNotification>(m_text, m_title, m_icon ? m_icon->to_shareable_bitmap(connection->server_pid()) : Gfx::ShareableBitmap());
|
auto icon = m_icon ? m_icon->to_shareable_bitmap(connection->server_pid()) : Gfx::ShareableBitmap();
|
||||||
|
connection->send_sync<Messages::NotificationServer::ShowNotification>(m_text, m_title, icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue