Commit a4bb3896 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
parent d7ee3f12
Pipeline #136419 passed with stage
in 13 minutes
......@@ -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