[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: use `Popup.Window` in `PointingToolTip` and not in `ToolTipExt`

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Nov 27 11:45:58 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
2ef3773e by Fatih Uzunoglu at 2026-11-27T12:25:38+01:00
qml: use `Popup.Window` in `PointingToolTip` and not in `ToolTipExt`

`Popup.Window` was totally unfunctional when it was first
introduced with Qt 6.8. Many of the problems have been fixed,
but as of Qt 6.12, windowed popups are still very problematic.

The most important part to have independent window popup
is with the pointing tool tip over the seek bar, this patch
limits the `Popup.Window` usage there in all cases.

- - - - -
b4d59928 by Fatih Uzunoglu at 2026-11-27T12:25:38+01:00
qml: do not use `Popup.Window` with Wayland in `PointingToolTip`

Wayland, due to its design, causes already problematic
`Popup.Window` to be more problematic.

- - - - -


2 changed files:

- modules/gui/qt/widgets/qml/PointingTooltip.qml
- modules/gui/qt/widgets/qml/ToolTipExt.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/PointingTooltip.qml
=====================================
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 import QtQuick
+import QtQuick.Templates as T
 
 import VLC.Style
 
@@ -35,6 +36,9 @@ ToolTipExt {
     x: _x
     y: _pos.y - (implicitHeight + arrowArea.implicitHeight + VLCStyle.dp(7.5, VLCStyle.scale))
 
+    popupType: Qt.platform.pluginName.startsWith("wayland") ? T.Popup.Item
+                                                            : T.Popup.Window
+
     readonly property real _x: _pos.x - (width / 2)
     property point pos
     property point _pos


=====================================
modules/gui/qt/widgets/qml/ToolTipExt.qml
=====================================
@@ -44,13 +44,6 @@ T.ToolTip {
 
     property real radius: VLCStyle.dp(4, VLCStyle.scale)
 
-    Component.onCompleted: {
-        if (control.popupType !== undefined) {
-            console.assert(typeof control.popupType === "number")
-            control.popupType = 1 // Popup.Window
-        }
-    }
-
     // NOTE: The tool tip often moves around, particularly noticable
     //       with the attached (global) tool tip, and pointing tool
     //       tip. Ideally, we could override property `visible` and
@@ -104,7 +97,7 @@ T.ToolTip {
             })
         }
 
-        readonly property real maxContentWidth: (control.popupType === 1 /* Popup.Window */)
+        readonly property real maxContentWidth: (control.popupType === T.Popup.Window)
             ? Screen.desktopAvailableWidth
             : Window.width
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/02d3a0a1cf60ccd429fb9db5f9e05fef004bb2a8...b4d599280c4a3d2a0ae464e1a8a7f6e1f1d195ea

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/02d3a0a1cf60ccd429fb9db5f9e05fef004bb2a8...b4d599280c4a3d2a0ae464e1a8a7f6e1f1d195ea
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list