Fixed fullscreen sometimes segfaulting

This commit is contained in:
Erik Reider 2024-01-22 19:17:31 +01:00
parent 288b04d740
commit 42fcd6c86d

View file

@ -2005,8 +2005,8 @@ static void render_fullscreen_con(pixman_region32_t *damage,
// Only clear the transformed fullscreen bounds // Only clear the transformed fullscreen bounds
pixman_region32_t dmg; pixman_region32_t dmg;
pixman_region32_init(&dmg);
if (!clear_whole_screen) { if (!clear_whole_screen) {
pixman_region32_init(&dmg);
pixman_region32_copy(&dmg, damage); pixman_region32_copy(&dmg, damage);
adjust_damage_to_workspace_bounds(&dmg, &deco_data, workspace); adjust_damage_to_workspace_bounds(&dmg, &deco_data, workspace);
damage = &dmg; damage = &dmg;