From 6f3b9fae2a699e2397fca4e138353eb3218c22e5 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Wed, 8 Feb 2012 16:41:02 +0100 Subject: [PATCH] kwin: fixing _NET_WM_OPAQUE_REGION related bug The initial implementation forgot to consider the client borders. BUG: 293574 FIXED-IN: 4.8.1 --- scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene.cpp b/scene.cpp index 81ca9378a8..bb92fc1098 100644 --- a/scene.cpp +++ b/scene.cpp @@ -282,7 +282,7 @@ void Scene::paintSimpleScreen(int orig_mask, QRegion region) data.clip = w->clientShape().translated(w->x(), w->y()); } else if (topw->hasAlpha() && topw->opacity() == 1.0) { // the window is partially opaque - data.clip = (w->clientShape() & topw->opaqueRegion()).translated(w->x(), w->y()); + data.clip = (w->clientShape() & topw->opaqueRegion().translated(topw->clientPos())).translated(w->x(), w->y()); } else { data.clip = QRegion(); }