1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

WindowServer+Taskbar: Let WindowServer manage the "window menus".

Taskbar now simply asks the WindowServer to popup a window menu when right
clicking on a taskbar button.

This patch also implements the "close" menu item, and furthermore makes the
window menu show up when you left-click a window's titlebar icon. :^)
This commit is contained in:
Andreas Kling 2019-06-21 11:03:43 +02:00
parent da475ce3f5
commit 2e9cc75d11
10 changed files with 92 additions and 35 deletions

View file

@ -222,6 +222,7 @@ struct WSAPI_ClientMessage {
WM_SetActiveWindow,
WM_SetWindowMinimized,
WM_StartWindowResize,
WM_PopupWindowMenu,
PopupMenu,
DismissMenu,
SetWindowIcon,
@ -251,6 +252,7 @@ struct WSAPI_ClientMessage {
int client_id;
int window_id;
bool minimized;
WSAPI_Point position;
} wm;
struct {
int menubar_id;