1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Print the number of WindowManager recompose() calls to debugger.

This commit is contained in:
Andreas Kling 2019-01-09 04:18:28 +01:00
parent 39e236d346
commit f3ec96a1b9
2 changed files with 3 additions and 0 deletions

View file

@ -279,6 +279,7 @@ void WindowManager::handlePaintEvent(PaintEvent& event)
void WindowManager::recompose()
{
printf("[WM] recompose_count: %u\n", ++m_recompose_count);
auto& framebuffer = FrameBufferSDL::the();
m_rootWidget->repaint(m_rootWidget->rect());
for (auto* window = m_windows_in_order.head(); window; window = window->next()) {