Schedule a workspace repaint in AbstractClient::minimize()

Summary:
We need to schedule a workspace repaint in minimize() to ensure that
there are no ghost windows on Wayland.

Test Plan:
Make sure that window minimization effects are disabled,
minimize a window. Without this patch, you are going to see a ghost
window. With this patch, no ghost window.

Reviewers: #kwin, davidedmundson, apol

Reviewed By: #kwin, davidedmundson, apol

Subscribers: apol, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D27516
master
Vlad Zahorodnii 2020-02-20 10:51:20 +02:00
parent 41735fdd10
commit 275082ad49
1 changed files with 1 additions and 0 deletions

View File

@ -629,6 +629,7 @@ void AbstractClient::minimize(bool avoid_animation)
updateWindowRules(Rules::Minimize);
FocusChain::self()->update(this, FocusChain::MakeFirstMinimized);
// TODO: merge signal with s_minimized
addWorkspaceRepaint(visibleRect());
emit clientMinimized(this, !avoid_animation);
emit minimizedChanged();
}