mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 08:35:26 +00:00
WindowServer: Add a WSWindowType enum.
So far there's only Normal and Menu. Maybe we'll need more later.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
WSWindow::WSWindow(WSMenu& menu)
|
||||
: m_lock("WSWindow (menu)")
|
||||
, m_type(WSWindowType::Menu)
|
||||
, m_menu(&menu)
|
||||
{
|
||||
WSWindowManager::the().add_window(*this);
|
||||
@@ -13,6 +14,7 @@ WSWindow::WSWindow(WSMenu& menu)
|
||||
|
||||
WSWindow::WSWindow(Process& process, int window_id)
|
||||
: m_lock("WSWindow (normal)")
|
||||
, m_type(WSWindowType::Normal)
|
||||
, m_process(&process)
|
||||
, m_window_id(window_id)
|
||||
, m_pid(process.pid())
|
||||
|
||||
Reference in New Issue
Block a user