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
This commit is contained in:
Vlad Zagorodniy 2019-02-06 16:09:25 +02:00
parent 5a750c3667
commit 381d0df7f9

View file

@ -118,6 +118,7 @@ void Toplevel::copyToDeleted(Toplevel* c)
damage_handle = None; damage_handle = None;
damage_region = c->damage_region; damage_region = c->damage_region;
repaints_region = c->repaints_region; repaints_region = c->repaints_region;
layer_repaints_region = c->layer_repaints_region;
is_shape = c->is_shape; is_shape = c->is_shape;
effect_window = c->effect_window; effect_window = c->effect_window;
if (effect_window != NULL) if (effect_window != NULL)