mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
WindowServer: Let menu objects reference the WSClientConnection by pointer.
Since these are owner/ownee relationships, there's no need for indirection.
This commit is contained in:
parent
459cc23441
commit
fa452fadca
Notes:
sideshowbarker
2024-07-19 15:41:13 +09:00
Author: https://github.com/awesomekling
Commit: fa452fadca
6 changed files with 19 additions and 16 deletions
|
@ -184,7 +184,7 @@ WSWindowManager::WSWindowManager()
|
|||
|
||||
{
|
||||
byte system_menu_name[] = { 0xf8, 0 };
|
||||
m_system_menu = make<WSMenu>(-1, -1, String((const char*)system_menu_name));
|
||||
m_system_menu = make<WSMenu>(nullptr, -1, String((const char*)system_menu_name));
|
||||
m_system_menu->add_item(make<WSMenuItem>(0, "Launch Terminal"));
|
||||
m_system_menu->add_item(make<WSMenuItem>(WSMenuItem::Separator));
|
||||
m_system_menu->add_item(make<WSMenuItem>(1, "Hello again"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue