mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-27 10:07:56 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user