mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
WindowServer: Fix compositing of fullscreen window
I honestly don't know the internals of all this and what exactly is going on, but this fixes compositing of the fullscreen window. By trial and error I found that specifically m_invalidated_all needs to be set to false, so it's probably different behaviour in prepare_dirty_rects(), which depends on that... Either way, the code composing all windows in non-fullscreen mode calls Window::clear_dirty_rects() for each, so not doing that for the fullscreen window as well seems like an oversight. Fixes #4810.
This commit is contained in:
parent
e1333724ea
commit
0304ab3e67
Notes:
sideshowbarker
2024-07-18 22:26:04 +09:00
Author: https://github.com/linusg
Commit: 0304ab3e67
Pull-request: https://github.com/SerenityOS/serenity/pull/5286
Issue: https://github.com/SerenityOS/serenity/issues/4810
Reviewed-by: https://github.com/tomuta ✅
1 changed files with 1 additions and 0 deletions
|
@ -422,6 +422,7 @@ void Compositor::compose()
|
|||
if (m_invalidated_window) {
|
||||
if (auto* fullscreen_window = wm.active_fullscreen_window()) {
|
||||
compose_window(*fullscreen_window);
|
||||
fullscreen_window->clear_dirty_rects();
|
||||
} else {
|
||||
wm.for_each_visible_window_from_back_to_front([&](Window& window) {
|
||||
compose_window(window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue