From d04645266c13afe5fba570a4acdf1d3fa67ff7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 28 Aug 2015 22:58:31 +0200 Subject: [PATCH] enforce update on re-redirection REVIEW: 125039 BUG: 342881 FIXED-IN: 5.5 --- composite.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/composite.cpp b/composite.cpp index e1f1856517..58f78564e0 100644 --- a/composite.cpp +++ b/composite.cpp @@ -864,12 +864,14 @@ void Compositor::delayedCheckUnredirect() ToplevelList list; bool changed = forceUnredirectCheck; foreach (Client * c, Workspace::self()->clientList()) - list.append(c); + list.append(c); foreach (Unmanaged * c, Workspace::self()->unmanagedList()) - list.append(c); + list.append(c); foreach (Toplevel * c, list) { - if (c->updateUnredirectedState()) + if (c->updateUnredirectedState()) { changed = true; + break; + } } // no desktops, no Deleted ones if (!changed) @@ -884,6 +886,7 @@ void Compositor::delayedCheckUnredirect() reg -= c->geometry(); } m_scene->overlayWindow()->setShape(reg); + addRepaint(reg); } bool Compositor::checkForOverlayWindow(WId w) const