mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
WindowServer+LibGUI: Taskbar should show all windows from each process
We were not sending the ID of the window that was listening for window management (WM) events along with the WM messages. They only included the "target" window's ID. Since the taskbar's single window had the first window ID for its own connection to the WindowServer, it meant that it would only receive WM events for the first window ID in other processes as well. This broke when I ported WindowServer to LibIPC. Fix this by including the WM listener ID in all WM messages, and since we're here anyway, get rid of a bunch of unnecessary indirection where we were passing WM events through the WindowServer event loop before sending them to the listener.
This commit is contained in:
parent
9619dab727
commit
8c8118fbf8
5 changed files with 25 additions and 152 deletions
|
@ -22,10 +22,10 @@ endpoint WindowClient = 4
|
|||
|
||||
ClipboardContentsChanged(String content_type) =|
|
||||
|
||||
WM_WindowRemoved(i32 client_id, i32 window_id) =|
|
||||
WM_WindowStateChanged(i32 client_id, i32 window_id, bool is_active, bool is_minimized, i32 window_type, String title, Rect rect) =|
|
||||
WM_WindowIconBitmapChanged(i32 client_id, i32 window_id, i32 icon_buffer_id, Size icon_size) =|
|
||||
WM_WindowRectChanged(i32 client_id, i32 window_id, Rect rect) =|
|
||||
WM_WindowRemoved(i32 wm_id, i32 client_id, i32 window_id) =|
|
||||
WM_WindowStateChanged(i32 wm_id, i32 client_id, i32 window_id, bool is_active, bool is_minimized, i32 window_type, String title, Rect rect) =|
|
||||
WM_WindowIconBitmapChanged(i32 wm_id, i32 client_id, i32 window_id, i32 icon_buffer_id, Size icon_size) =|
|
||||
WM_WindowRectChanged(i32 wm_id, i32 client_id, i32 window_id, Rect rect) =|
|
||||
|
||||
AsyncSetWallpaperFinished(bool success) =|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue