WindowServer: Fix crash rendering fullscreen window

Fixes #8869
This commit is contained in:
Tom 2021-07-18 20:44:32 -06:00 committed by Gunnar Beutner
parent 94322ea985
commit 18eeb3db87
Notes: sideshowbarker 2024-07-18 08:45:49 +09:00

View file

@ -1092,6 +1092,7 @@ void Compositor::recompute_occlusions()
auto& visible_opaque = w.opaque_rects();
auto& transparency_rects = w.transparency_rects();
auto& transparency_wallpaper_rects = w.transparency_wallpaper_rects();
w.affected_transparency_rects().clear();
w.screens().clear_with_capacity();
if (&w == fullscreen_window) {
w.screens().append(&main_screen);