Remove some manual repaints in X11Client

Let the scene schedule a repaint instead.
This commit is contained in:
Vlad Zahorodnii 2021-11-10 10:33:48 +02:00
parent 29235e122d
commit d755e74c29

View file

@ -274,8 +274,6 @@ void X11Client::releaseWindow(bool on_shutdown)
leaveInteractiveMoveResize();
finishWindowRules();
blockGeometryUpdates();
if (isOnCurrentDesktop() && isShown(true))
addWorkspaceRepaint(visibleGeometry());
// Grab X during the release to make removing of properties, setting to withdrawn state
// and repareting to root an atomic operation (https://lists.kde.org/?l=kde-devel&m=116448102901184&w=2)
grabXServer();
@ -338,8 +336,6 @@ void X11Client::destroyClient()
leaveInteractiveMoveResize();
finishWindowRules();
blockGeometryUpdates();
if (isOnCurrentDesktop() && isShown(true))
addWorkspaceRepaint(visibleGeometry());
setModal(false);
hidden = true; // So that it's not considered visible anymore
workspace()->clientHidden(this);