public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qt6-qtwebengine] epel9: Fix Quick popup window positioning under X11
Date: Thu, 08 Oct 2026 20:25:45 GMT	[thread overview]
Message-ID: <179149114597.1.8855253117380731341.rpms-qt6-qtwebengine-eba7bec4749e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/qt6-qtwebengine
Branch : epel9
Commit : eba7bec4749e3691bd89f853ce494aea86586daa
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2026-01-13T12:24:12+01:00
Stats  : +53/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/qt6-qtwebengine/c/eba7bec4749e3691bd89f853ce494aea86586daa?branch=epel9

Log:
Fix Quick popup window positioning under X11

---
diff --git a/qt6-qtwebengine.spec b/qt6-qtwebengine.spec
index b2ad566..ad75b37 100644
--- a/qt6-qtwebengine.spec
+++ b/qt6-qtwebengine.spec
@@ -88,7 +88,7 @@
 Summary: Qt6 - QtWebEngine components
 Name:    qt6-qtwebengine
 Version: 6.10.1
-Release: 4%{?dist}
+Release: 5%{?dist}
 
 # See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
 # See also http://qt-project.org/doc/qt-5.0/qtdoc/licensing.html
@@ -133,8 +133,11 @@ Patch5:   qtwebengine-chromium-141-glibc-2.42-SYS_SECCOMP.patch
 ## Upstream patches:
 # https://bugreports.qt.io/browse/QTBUG-129985
 Patch80:  qtwebengine-fix-arm-build.patch
+# Remove with Qt 6.10.2
 # https://codereview.qt-project.org/c/qt/qtwebengine/+/702597
 Patch81:  qtwebengine-move-gpu-info-logging-to-gpu-thread.patch
+# https://qt-project.atlassian.net/browse/QTBUG-142823
+Patch82:  qtwebengine-fix-quick-popup-window-positioning-under-x11.patch
 
 ## Upstreamable patches:
 Patch100: qtwebengine-add-missing-pipewire-headers.patch
@@ -491,6 +494,7 @@ popd
 ## upstream patches
 %patch -P80 -p1 -b .fix-arm-build
 %patch -P81 -p1 -b .move-gpu-info-logging-to-gpu-thread
+%patch -P82 -p1 -b .fix-quick-popup-window-positioning-under-x11
 
 ## upstreamable patches
 %patch -P100 -p1 -b .add-missing-pipewire-headers
@@ -852,6 +856,9 @@ done
 %endif
 
 %changelog
+* Tue Jan 13 2026 Jan Grulich <jgrulich@redhat.com> - 6.10.1-5
+- Fix Quick popup window positioning under X11
+
 * Sun Jan 11 2026 Jan Grulich <jgrulich@redhat.com> - 6.10.1-4
 - Apply the "Move GPU info logging into the GPU thread" patch
 

diff --git a/qtwebengine-fix-quick-popup-window-positioning-under-x11.patch b/qtwebengine-fix-quick-popup-window-positioning-under-x11.patch
new file mode 100644
index 0000000..318a852
--- /dev/null
+++ b/qtwebengine-fix-quick-popup-window-positioning-under-x11.patch
@@ -0,0 +1,45 @@
+From 65ea28e7204eaeb39588a33cfc2f69c48951aa6a Mon Sep 17 00:00:00 2001
+From: Peter Varga <pvarga@inf.u-szeged.hu>
+Date: Thu, 14 Aug 2025 16:17:41 +0200
+Subject: [PATCH] Fix Quick popup window positioning under X11
+
+If the popup window has the Qt::Dialog flag, some window managers may
+try to resize and move the popup after it becomes visible. This can lead
+to a blinking popup or even worse, it can cause a loop that continuously
+moves the popup window.
+
+Replace Qt::Tool flag with Qt::Popup to get rid of the Qt::Dialog flag
+but keep popup as popup.
+
+Note on Wayland Qt:Tool is xdg toplevel not a 'popup' neither 'grabbing
+popup' and it creates shell surface. This means it will get random
+position on the screen.
+
+Note this tricky issue as we already changed that several times both
+for widgets and quick due to different reasons (see 1390979a, 2f720836,
+58467ed19, 7e7dd2625, c56169f7a1)
+
+Fixes: QTBUG-140321
+Task-number: QTBUG-132794
+Task-number: QTBUG-138747
+Pick-to: 6.10
+Change-Id: I8c3a94519008455fac2d8ab4c3bf34d860e2475b
+Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
+---
+ .../render_widget_host_view_qt_delegate_quickwindow.cpp        | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/webenginequick/render_widget_host_view_qt_delegate_quickwindow.cpp b/src/webenginequick/render_widget_host_view_qt_delegate_quickwindow.cpp
+index 3ad88ca39aa..95b5e3500b3 100644
+--- a/src/webenginequick/render_widget_host_view_qt_delegate_quickwindow.cpp
++++ b/src/webenginequick/render_widget_host_view_qt_delegate_quickwindow.cpp
+@@ -31,7 +31,8 @@ RenderWidgetHostViewQtDelegateQuickWindow::RenderWidgetHostViewQtDelegateQuickWi
+         RenderWidgetHostViewQtDelegateItem *realDelegate, QWindow *parent)
+     : QQuickWindow(), m_realDelegate(realDelegate), m_virtualParent(nullptr), m_transformed(false)
+ {
+-    setFlags(Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus);
++    setFlags(Qt::Popup | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint
++             | Qt::WindowDoesNotAcceptFocus);
+     realDelegate->setParentItem(contentItem());
+     setTransientParent(parent);
+ }

                 reply	other threads:[~2026-10-08 20:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179149114597.1.8855253117380731341.rpms-qt6-qtwebengine-eba7bec4749e@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox