summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-08 10:11:03 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-08 10:14:09 +0200
commit4d2f47da2e4869b0419cf13856ddca8a3e34e88a (patch)
tree9978fbf74db97ad24c824ea59b011b47da6fe779 /src
parente33704cdd6f935410dbbdbfedca6ddd648e70f4e (diff)
The offset of cropRect should not depend on the position of the window
The rect cropRect should be positioned with the offset to the top-level window, not the screen position.
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 48e174be11..ad16485cd6 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -3905,7 +3905,7 @@ void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &oldRect)
// we are too big, and must clip
QPoint screenOffset(0, 0); // offset of the part being on screen
const QWidget *parentWidget = q->parentWidget();
- while (parentWidget) {
+ while (parentWidget && !parentWidget->isWindow()) {
screenOffset -= parentWidget->data->crect.topLeft();
parentWidget = parentWidget->parentWidget();
}