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

WindowServer: Redraw Taskbar on window highlight during switching

This commit is contained in:
John Bundgaard 2023-01-05 05:43:09 +01:00 committed by Sam Atkins
parent 091dbec295
commit 7dc874104b

View file

@ -1791,6 +1791,18 @@ void WindowManager::set_highlight_window(Window* new_highlight_window)
new_highlight_window->invalidate(true, true);
Compositor::the().invalidate_screen(new_highlight_window->frame().render_rect());
}
if (active_fullscreen_window()) {
// Find the Taskbar window and invalidate it so it draws correctly
for_each_visible_window_from_back_to_front([](Window& window) {
if (window.type() == WindowType::Taskbar) {
window.invalidate();
return IterationDecision::Break;
}
return IterationDecision::Continue;
});
}
// Invalidate occlusions in case the state change changes geometry
Compositor::the().invalidate_occlusions();
}