Fix window content geometry for Qt5 when shadows are enabled

This commit is contained in:
Jan Grulich 2022-09-22 17:22:23 +02:00
parent 234177d13e
commit 06dd8d3a39
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- a/src/decoration/qgnomeplatformdecoration.cpp
+++ b/src/decoration/qgnomeplatformdecoration.cpp
@@ -620,7 +620,7 @@ bool QGnomePlatformDecoration::handleTouch(QWaylandInputDevice *inputDevice,
QRect QGnomePlatformDecoration::windowContentGeometry() const
{
-#if QT_VERSION >= 0x060000
+#if DECORATION_SHADOWS_SUPPORT
return waylandWindow()->windowContentGeometry() + margins(ShadowsOnly);
#else
return waylandWindow()->windowContentGeometry();

View File

@ -1,6 +1,6 @@
Name: qgnomeplatform
Version: 0.9.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Qt Platform Theme aimed to accommodate Gnome settings
License: LGPLv2+
@ -8,6 +8,7 @@ URL: https://github.com/FedoraQt/QGnomePlatform
Source0: https://github.com/FedoraQt/QGnomePlatform/archive/%{version}/QGnomePlatform-%{version}.tar.gz
# Upstream patches
Patch0: qgnomeplatform-fix-window-content-geometry-for-qt5-when-shadows-are-enabled.patch
BuildRequires: make
BuildRequires: pkgconfig(gio-2.0)
@ -103,6 +104,9 @@ modifying them - making them fit into the environment as well as possible.
%{_qt6_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so
%changelog
* Thu Sep 22 2022 Jan Grulich <jgrulich@redhat.com> - 0.9.0-2
- Fix window content geometry for Qt5 when shadows are enabled
* Wed Sep 21 2022 Jan Grulich <jgrulich@redhat.com> - 0.9.0-1
- 0.9.0