diff options
author | Tom <tomut@yahoo.com> | 2021-06-17 20:16:18 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-20 14:57:26 +0200 |
commit | 0547e0329ac9f881b597e822de964f740d890ed3 (patch) | |
tree | 23bfb7560a67d7fbbbc9d713a11310034cedb53a /Userland/Services/WindowServer/WindowFrame.h | |
parent | 229b541e5dc9952fe21114c695ab37f024562664 (diff) | |
download | serenity-0547e0329ac9f881b597e822de964f740d890ed3.zip |
WindowServer: Fix artifacts after window resize in some cases
We were calculating the old window rectangle after changing window
states that may affect these calculations, which sometimes resulted
in artifacts left on the screen, particularily when tiling a window
as this now also constrains rendering to one screen.
Instead, just calculate the new rectangle and use the window's
occlusion information to figure out what areas need to be invalidated.
Diffstat (limited to 'Userland/Services/WindowServer/WindowFrame.h')
-rw-r--r-- | Userland/Services/WindowServer/WindowFrame.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowFrame.h b/Userland/Services/WindowServer/WindowFrame.h index b35143378b..457d34afb2 100644 --- a/Userland/Services/WindowServer/WindowFrame.h +++ b/Userland/Services/WindowServer/WindowFrame.h @@ -67,7 +67,7 @@ public: bool handle_titlebar_icon_mouse_event(MouseEvent const&); void handle_border_mouse_event(MouseEvent const&); - void notify_window_rect_changed(const Gfx::IntRect& old_rect, const Gfx::IntRect& new_rect); + void window_rect_changed(const Gfx::IntRect& old_rect, const Gfx::IntRect& new_rect); void invalidate_titlebar(); void invalidate(Gfx::IntRect relative_rect); void invalidate(); |