1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

WindowServer: Add basic menu applet concept

It's now possible to create a little applet window that sits inside the
system's menubar. This is done using the new CreateMenuApplet IPC call.

So far, it's possible to assign a backing store ID, and to invalidate
rects for repaint. There is no way to get the events from inside the
applet just yet.

This will allow us to move the CPU graph and audio thingy to separate
applet processes. :^)
This commit is contained in:
Andreas Kling 2019-12-05 19:36:01 +01:00
parent 2d18fc8052
commit 44d5388e78
8 changed files with 174 additions and 0 deletions

View file

@ -16,6 +16,11 @@ endpoint WindowServer = 2
UpdateMenuItem(i32 menu_id, i32 identifier, i32 submenu_id, String text, bool enabled, bool checkable, bool checked, String shortcut) => ()
CreateMenuApplet(Size size) => (i32 applet_id)
DestroyMenuApplet(i32 applet_id) => ()
SetMenuAppletBackingStore(i32 applet_id, i32 shared_buffer_id) => ()
InvalidateMenuAppletRect(i32 applet_id, Rect rect) => ()
CreateWindow(
Rect rect,
bool has_alpha_channel,