mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27: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
|
@ -149,7 +149,8 @@ public:
|
|||
template<typename Callback>
|
||||
void for_each_active_menubar_menu(Callback callback)
|
||||
{
|
||||
callback(*m_system_menu);
|
||||
if (callback(*m_system_menu) == IterationDecision::Break)
|
||||
return;
|
||||
if (m_current_menubar)
|
||||
m_current_menubar->for_each_menu(callback);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue