Commit ee65fb3d authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Schedule workspace repaint when window leaves current desktop

When a window leaves the current virtual desktop, we need to schedule a
workspace repaint so the compositor repaints the old region of the
window on the current desktop.

In hindsight, the scene graph must schedule a repaint, but it's not
doable with the current effects api, it will be changed with future
refactoring changes.

BUG: 444172


(cherry picked from commit a4bb3896)
parent d6e42ba0
Pipeline #136421 passed with stage
in 14 minutes and 31 seconds
......@@ -496,8 +496,10 @@ void AbstractClient::setDesktops(QVector<VirtualDesktop*> desktops)
updateWindowRules(Rules::Desktops);
Q_EMIT desktopChanged();
if (wasOnCurrentDesktop != isOnCurrentDesktop())
if (wasOnCurrentDesktop != isOnCurrentDesktop()) {
addWorkspaceRepaint(visibleGeometry());
Q_EMIT desktopPresenceChanged(this, was_desk);
}
Q_EMIT x11DesktopIdsChanged();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment