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:
parent
da475ce3f5
commit
2e9cc75d11
10 changed files with 92 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue