Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 782 Lines • ▼ Show 20 Line(s) | 772 | { | |||
---|---|---|---|---|---|
783 | } | 783 | } | ||
784 | 784 | | |||
785 | const QRect clippingRect = QRect(QPoint(0, 0), toplevel->bufferGeometry().size()) - toplevel->bufferMargins(); | 785 | const QRect clippingRect = QRect(QPoint(0, 0), toplevel->bufferGeometry().size()) - toplevel->bufferMargins(); | ||
786 | return shape & clippingRect; | 786 | return shape & clippingRect; | ||
787 | } | 787 | } | ||
788 | 788 | | |||
789 | QRegion Scene::Window::decorationShape() const | 789 | QRegion Scene::Window::decorationShape() const | ||
790 | { | 790 | { | ||
791 | return QRegion(toplevel->decorationRect()) - toplevel->transparentRect(); | 791 | return QRegion(toplevel->rect()) - toplevel->transparentRect(); | ||
792 | } | 792 | } | ||
793 | 793 | | |||
794 | QPoint Scene::Window::bufferOffset() const | 794 | QPoint Scene::Window::bufferOffset() const | ||
795 | { | 795 | { | ||
796 | const QRect bufferGeometry = toplevel->bufferGeometry(); | 796 | const QRect bufferGeometry = toplevel->bufferGeometry(); | ||
797 | const QRect frameGeometry = toplevel->frameGeometry(); | 797 | const QRect frameGeometry = toplevel->frameGeometry(); | ||
798 | return bufferGeometry.topLeft() - frameGeometry.topLeft(); | 798 | return bufferGeometry.topLeft() - frameGeometry.topLeft(); | ||
799 | } | 799 | } | ||
▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines |