mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 09:35:09 +00:00
Hook everything up to run the GUI on top of the kernel.
Okay things kinda sorta work. Both Bochs and QEMU now boot into GUI mode. There's a ton of stuff that doesn't make sense and so many things to rework. Still it's quite cool to have made it this far. :^)
This commit is contained in:
parent
8626e95509
commit
f6d2c3ed87
17 changed files with 117 additions and 23 deletions
|
@ -47,10 +47,18 @@ static inline Rect outerRectForWindow(const Window& window)
|
|||
return rect;
|
||||
}
|
||||
|
||||
static WindowManager* s_the_window_manager;
|
||||
|
||||
WindowManager& WindowManager::the()
|
||||
{
|
||||
static WindowManager* s_the = new WindowManager;
|
||||
return *s_the;
|
||||
if (!s_the_window_manager)
|
||||
s_the_window_manager = new WindowManager;
|
||||
return *s_the_window_manager;
|
||||
}
|
||||
|
||||
void WindowManager::initialize()
|
||||
{
|
||||
s_the_window_manager = nullptr;
|
||||
}
|
||||
|
||||
WindowManager::WindowManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue