From 2ddcf5121df00e36cf4b69c4383cbfde22babfc5 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Sun, 28 Apr 2024 20:48:02 +0200 Subject: [PATCH] do not set Qt::ToolTip flag for QShapedPixmapWindow Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=180b496b537089b8 Bug: https://bugreports.qt.io/browse/QTBUG-98048 Last-Update: 2023-05-20 This hint is not really needed in the first place and only causes problems in some environments. For example in KDE, the compositor animates changes in position and size for all ToolTip windows. However, this is not wanted here because we use this window as a thumbnail for a drag-and-drop operation. Before this patch the dragged element would lag significantly behind the cursor. Now it works as expected, i.e. the dragged element follows the cursor immediately. Gbp-Pq: Name qshapedpixmapwindow_no_tooltip.diff --- src/gui/kernel/qshapedpixmapdndwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qshapedpixmapdndwindow.cpp b/src/gui/kernel/qshapedpixmapdndwindow.cpp index 1a85a5e85..0e3d8f958 100644 --- a/src/gui/kernel/qshapedpixmapdndwindow.cpp +++ b/src/gui/kernel/qshapedpixmapdndwindow.cpp @@ -56,7 +56,7 @@ QShapedPixmapWindow::QShapedPixmapWindow(QScreen *screen) QSurfaceFormat format; format.setAlphaBufferSize(8); setFormat(format); - setFlags(Qt::ToolTip | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint + setFlags(Qt::FramelessWindowHint | Qt::BypassWindowManagerHint | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus); } -- 2.30.2