From d755e74c2977b2f00fe003ac67d4a6a7852ae3e3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 10 Nov 2021 10:33:48 +0200 Subject: [PATCH] Remove some manual repaints in X11Client Let the scene schedule a repaint instead. --- src/x11client.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/x11client.cpp b/src/x11client.cpp index 276c45f329..1a9def0a9d 100644 --- a/src/x11client.cpp +++ b/src/x11client.cpp @@ -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);