mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
WindowServer: Redraw Taskbar on window highlight during switching
This commit is contained in:
parent
091dbec295
commit
7dc874104b
Notes:
sideshowbarker
2024-07-17 00:17:44 +09:00
Author: https://github.com/jbdk
Commit: 7dc874104b
Pull-request: https://github.com/SerenityOS/serenity/pull/16828
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
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