From a8b212e40ea80806c47308da40ebbb0f5190b9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 4 Jan 2012 23:10:17 +0100 Subject: [PATCH] Pick correct screen area in tabbox w/o scree focus separation case BUG: 290633 --- effects/presentwindows/presentwindows.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 3b4ae26aad..dc4d5c5fb2 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -351,7 +351,10 @@ void PresentWindowsEffect::paintWindow(EffectWindow *w, int mask, QRegion region if (m_activated && winData->highlight > 0.0) { // scale the window (interpolated by the highlight level) to at least 105% or to cover 1/16 of the screen size - yet keep it in screen bounds - QRect area = effects->clientArea(FullScreenArea, w); + QRect area = m_tabBoxEnabled ? + effects->clientArea(ScreenArea, effects->activeScreen(), effects->currentDesktop()) : + effects->clientArea(FullScreenArea, w); + QSizeF effSize(w->width()*data.xScale, w->height()*data.yScale); float tScale = sqrt((area.width()*area.height()) / (16.0*effSize.width()*effSize.height())); if (tScale < 1.05) {