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:
parent
091dbec295
commit
7dc874104b
1 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue