From dda76d82f923709dd40a704f158550c8ab4ab4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 5 May 2012 16:38:02 +0200 Subject: [PATCH] invoke decorationRect() in calculations for visibleRect() BUG: 299358 FIXED-IN: 4.9.0 REVIEW: 104865 --- toplevel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toplevel.cpp b/toplevel.cpp index 70f543e00e..94178130e3 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -147,10 +147,11 @@ void Toplevel::disownDataPassedToDeleted() QRect Toplevel::visibleRect() const { + QRect r = decorationRect(); if (hasShadow() && !shadow()->shadowRegion().isEmpty()) { - return shadow()->shadowRegion().boundingRect().translated(geometry().topLeft()); + r |= shadow()->shadowRegion().boundingRect(); } - return geometry(); + return r.translated(geometry().topLeft()); } NET::WindowType Toplevel::windowType(bool direct, int supported_types) const