public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qt6-qtbase] epel9: Backport: Wayland - convey preference for server side decorations
@ 2026-10-08 17:15 Jan Grulich
0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-08 17:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/qt6-qtbase
Branch : epel9
Commit : 045b22d4d63a862adcc09177c47e8f7124e7532f
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2025-10-29T14:29:28+01:00
Stats : +60/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qt6-qtbase/c/045b22d4d63a862adcc09177c47e8f7124e7532f?branch=epel9
Log:
Backport: Wayland - convey preference for server side decorations
---
diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec
index 982ee2d..5a8df07 100644
--- a/qt6-qtbase.spec
+++ b/qt6-qtbase.spec
@@ -48,7 +48,7 @@ BuildRequires: pkgconfig(libsystemd)
Name: qt6-qtbase
Summary: Qt6 - QtBase components
Version: 6.10.0
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://qt-project.org/
@@ -98,6 +98,7 @@ Patch56: qtbase-mysql.patch
Patch58: qtbase-libglvnd.patch
# upstream patches
+Patch100: qtbase-wayland-convey-preference-for-server-side-decorations.patch
# Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires.
# Those themes are there for platform integration. If the required libraries are
@@ -962,6 +963,9 @@ make check -k ||:
%{_qt6_datadir}/wayland/protocols/
%changelog
+* Wed Oct 29 2025 Jan Grulich <jgrulich@redhat.com> - 6.10.0-2
+- Backport: Wayland - convey preference for server side decorations
+
* Tue Oct 07 2025 Jan Grulich <jgrulich@redhat.com> - 6.10.0-1
- 6.10.0
diff --git a/qtbase-wayland-convey-preference-for-server-side-decorations.patch b/qtbase-wayland-convey-preference-for-server-side-decorations.patch
new file mode 100644
index 0000000..0a5b232
--- /dev/null
+++ b/qtbase-wayland-convey-preference-for-server-side-decorations.patch
@@ -0,0 +1,55 @@
+From 18550cd9ad04913d50abfc88a6048b7cfaf80687 Mon Sep 17 00:00:00 2001
+From: Igor Khanin <igor@khanin.biz>
+Date: Mon, 13 Oct 2025 14:26:39 +0300
+Subject: [PATCH] wayland: Convey preference for server side decorations
+
+As discussed in the mailing list, Qt applications generally expect top
+level windows to be decorated by the windowing system - unless
+explicitly requested by the developer by marking a window as frameless.
+Furthermore, Qt's client side decorations for Wayland were only really
+intended as a fallback.
+
+However until now the Wayland xdg-shell integration conveyed to the
+compositor (if it supports decorations negotiations) that it didn't
+care whose responsibility it was to draw window decorations. This did
+not matter under KWin, which resolves such cases in favor of SSDs - but
+does matter under other SSD-capable compositors like cosmic-comp (which
+considers SSDs to be the fallback option).
+
+This changes the xdg-shell integration code to be explicit about
+requesting SSDs.
+
+[ChangeLog][QtWaylandClient][Important Behavior Changes] The Wayland
+XDG shell integration now requests server side decorations with
+compositors supporting the zxdg_decoration_manager_v1 protocol.
+
+Change-Id: Ia025b1f6ff17248a5710f981a0cecd90c47b6cd8
+Reviewed-by: David Edmundson <davidedmundson@kde.org>
+---
+
+diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
+index a1a173f..8386b65 100644
+--- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
++++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
+@@ -201,7 +201,7 @@
+ delete m_decoration;
+ m_decoration = nullptr;
+ } else {
+- m_decoration->unsetMode();
++ m_decoration->requestMode(QWaylandXdgToplevelDecorationV1::mode_server_side);
+ }
+ }
+ }
+diff --git a/tests/auto/wayland/xdgdecorationv1/tst_xdgdecorationv1.cpp b/tests/auto/wayland/xdgdecorationv1/tst_xdgdecorationv1.cpp
+index 5ee8569..65ac08f 100644
+--- a/tests/auto/wayland/xdgdecorationv1/tst_xdgdecorationv1.cpp
++++ b/tests/auto/wayland/xdgdecorationv1/tst_xdgdecorationv1.cpp
+@@ -149,7 +149,7 @@
+ QVERIFY(window.frameMargins().isNull());
+
+ QCOMPOSITOR_TRY_VERIFY(xdgToplevel());
+- QCOMPOSITOR_TRY_VERIFY(toplevelDecoration()->m_unsetModeRequested);
++ QCOMPOSITOR_TRY_VERIFY(toplevelDecoration()->m_requestedMode == XdgToplevelDecorationV1::mode_server_side);
+ QVERIFY(window.frameMargins().isNull()); // We're still waiting for a configure
+ exec([&] {
+ toplevelDecoration()->sendConfigure(XdgToplevelDecorationV1::mode_client_side);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 17:15 [rpms/qt6-qtbase] epel9: Backport: Wayland - convey preference for server side decorations Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox