mirror of
https://github.com/RGBCube/serenity
synced 2025-07-06 14:17:36 +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:
parent
111589a558
commit
c61f9eba61
5 changed files with 15 additions and 3 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue