Major correction to previous patch

This commit is contained in:
Jan Grulich 2022-09-22 17:25:36 +02:00
parent 06dd8d3a39
commit f3ab54de4e

View File

@ -5,7 +5,7 @@
QRect QGnomePlatformDecoration::windowContentGeometry() const
{
-#if QT_VERSION >= 0x060000
+#if DECORATION_SHADOWS_SUPPORT
+#ifdef DECORATION_SHADOWS_SUPPORT // Qt 6.2.0+ or patched QtWayland
return waylandWindow()->windowContentGeometry() + margins(ShadowsOnly);
#else
return waylandWindow()->windowContentGeometry();