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

WindowServer: Don't re-open screen device immediately after opening it

The Screen constructor already calls open_device(), so there's no need
to call it again right after creating a new Screen in apply_layout().

This makes the first screen compose happen ~50ms earlier on my machine.
This commit is contained in:
Andreas Kling 2021-10-26 00:11:16 +02:00
parent 693423bbe8
commit fac6d220c3

View file

@ -145,7 +145,7 @@ bool Screen::apply_layout(ScreenLayout&& screen_layout, String& error_msg)
return false;
}
need_to_open_device = true;
need_to_open_device = false;
}
if (need_to_open_device && !screen->open_device()) {