1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Move windowing stuff from AbstractScreen to WindowManager.

This commit is contained in:
Andreas Kling 2018-10-12 01:10:16 +02:00
parent 415c4b90c5
commit 02f4d6ef8e
6 changed files with 59 additions and 58 deletions

View file

@ -16,9 +16,7 @@ int main(int c, char** v)
EventLoopSDL loop;
RootWidget w;
fb.setRootWidget(&w);
WindowManager::the();
WindowManager::the().setRootWidget(&w);
auto* l1 = new Label(&w);
l1->setRect(Rect(100, 100, 300, 20));