mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +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
Notes:
sideshowbarker
2024-07-19 15:46:31 +09:00
Author: https://github.com/awesomekling
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