From bfeacb57285a5edc0a247dd93af0462bc6c2d204 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 10 May 2021 12:26:35 +0200 Subject: [PATCH] WindowServer+Taskbar: Make all the IPC used by Taskbar asynchronous --- Userland/Services/Taskbar/TaskbarWindow.cpp | 2 +- Userland/Services/WindowServer/WindowManagerServer.ipc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 01d2835b3e..fdcdf48c4e 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -164,7 +164,7 @@ void TaskbarWindow::update_applet_area() main_widget()->do_layout(); Gfx::IntRect new_rect { {}, m_applet_area_size }; new_rect.center_within(m_applet_area_container->screen_relative_rect()); - GUI::WindowManagerServerConnection::the().set_applet_area_position(new_rect.location()); + GUI::WindowManagerServerConnection::the().async_set_applet_area_position(new_rect.location()); } NonnullRefPtr TaskbarWindow::create_button(const WindowIdentifier& identifier) diff --git a/Userland/Services/WindowServer/WindowManagerServer.ipc b/Userland/Services/WindowServer/WindowManagerServer.ipc index 17ee07aba9..b1a0140a60 100644 --- a/Userland/Services/WindowServer/WindowManagerServer.ipc +++ b/Userland/Services/WindowServer/WindowManagerServer.ipc @@ -1,12 +1,12 @@ endpoint WindowManagerServer { - set_event_mask(u32 event_mask) => () - set_manager_window(i32 window_id) => () + set_event_mask(u32 event_mask) =| + set_manager_window(i32 window_id) =| set_active_window(i32 client_id, i32 window_id) =| set_window_minimized(i32 client_id, i32 window_id, bool minimized) =| start_window_resize(i32 client_id, i32 window_id) =| popup_window_menu(i32 client_id, i32 window_id, Gfx::IntPoint screen_position) =| set_window_taskbar_rect(i32 client_id, i32 window_id, Gfx::IntRect rect) =| - set_applet_area_position(Gfx::IntPoint position) => () + set_applet_area_position(Gfx::IntPoint position) =| }