mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
WindowServer+MenuApplets: Move the "Audio" applet to its own program
This patch introduces the second MenuApplet: Audio. To make this work, menu applet windows now also receive mouse events. There's still some problem with mute/unmute via clicking not actually working, but the call goes from the applet program over IPC to the AudioServer, where something goes wrong with the state change message. Need to look at that separately. Anyways, it's pretty cool to have more applets running in their own separate processes. :^)
This commit is contained in:
parent
df129bbe0e
commit
e1940f365b
11 changed files with 98 additions and 46 deletions
|
@ -58,18 +58,11 @@ private:
|
|||
WeakPtr<WSMenu> m_current_menu;
|
||||
Vector<WeakPtr<WSMenu>> m_open_menu_stack;
|
||||
|
||||
RefPtr<GraphicsBitmap> m_muted_bitmap;
|
||||
RefPtr<GraphicsBitmap> m_unmuted_bitmap;
|
||||
|
||||
Vector<WeakPtr<WSWindow>> m_applets;
|
||||
|
||||
OwnPtr<AClientConnection> m_audio_client;
|
||||
|
||||
Rect m_audio_rect;
|
||||
Rect m_username_rect;
|
||||
Rect m_time_rect;
|
||||
|
||||
bool m_needs_window_resize { false };
|
||||
bool m_bar_open { false };
|
||||
bool m_audio_muted { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue