mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
Notes:
sideshowbarker
2024-07-18 23:51:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b8c3ea8b304
@ -60,7 +60,8 @@ Notification::~Notification()
|
||||
void Notification::show()
|
||||
{
|
||||
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…
Reference in New Issue
Block a user