From b053544c72d3b8f2ec8c9fc635bd62c5baa8461f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 15 Jan 2008 13:06:26 +0000 Subject: [PATCH] Trigger full repaint after configuration change and after switching to X, just in case. BUG: 154825 svn path=/trunk/KDE/kdebase/workspace/; revision=761857 --- events.cpp | 3 +++ workspace.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/events.cpp b/events.cpp index aa03c0c082..bb2ed83e27 100644 --- a/events.cpp +++ b/events.cpp @@ -476,7 +476,10 @@ bool Workspace::workspaceEvent( XEvent * e ) break; case VisibilityNotify: if( compositing() && overlay != None && e->xvisibility.window == overlay ) + { overlay_visible = ( e->xvisibility.state != VisibilityFullyObscured ); + addRepaintFull(); + } break; default: if( e->type == Extensions::randrNotifyEvent() && Extensions::randrAvailable() ) diff --git a/workspace.cpp b/workspace.cpp index 2499473264..e4b5a5734f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1041,6 +1041,7 @@ void Workspace::slotReconfigure() setupCompositing(); if( effects ) // setupCompositing() may fail effects->reconfigure(); + addRepaintFull(); } else finishCompositing();