From 381d0df7f9610d2d314efb37f967b6d08daf4b0f Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 6 Feb 2019 16:09:25 +0200 Subject: [PATCH] Copy layer repaints to Deleted Summary: If a Toplevel has scheduled layer repaints, then we have to copy them to Deleted as well. This can happen, for example, when a client loses shadow right before it gets closed or unmapped. Reviewers: #kwin, graesslin Reviewed By: #kwin, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18786 --- toplevel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/toplevel.cpp b/toplevel.cpp index 754b273194..99e8d8ce3a 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -118,6 +118,7 @@ void Toplevel::copyToDeleted(Toplevel* c) damage_handle = None; damage_region = c->damage_region; repaints_region = c->repaints_region; + layer_repaints_region = c->layer_repaints_region; is_shape = c->is_shape; effect_window = c->effect_window; if (effect_window != NULL)