[vlc-commits] [Git][videolan/vlc][master] qml: make independent window tool tip transparent for input
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sat Nov 7 10:48:27 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
c0ca2843 by Fatih Uzunoglu at 2026-11-07T11:22:59+01:00
qml: make independent window tool tip transparent for input
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/ToolTipExt.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/ToolTipExt.qml
=====================================
@@ -84,17 +84,24 @@ T.ToolTip {
property QtWindow _lastWindowForNoRedirectionSurface
Component.onCompleted: {
- if (MainCtx.createWindowWithoutRedirectionSurface) { // Win32
- Window.windowChanged.connect(this, () => {
- if (Window.window && (Window.window !== MainCtx.intfMainWindow)) { // Only relevant when `popupType` is `Popup.Window`
+ Window.windowChanged.connect(this, () => {
+ if (Window.window && (Window.window !== MainCtx.intfMainWindow)) { // Only relevant when `popupType` is `Popup.Window`
+
+ // Although Qt uses `Qt.ToolTip` window type, the platform plugins (or the platforms themselves) do not treat it
+ // implicitly as transparent for input. For that reason, we manually set it here. This fixes flickering when the
+ // cursor hovers the tool tip because the window being bounded by the screen (which
+ // is mainly relevant when the interface is maximized).
+ Window.window.flags |= Qt.WindowTransparentForInput
+
+ if (MainCtx.createWindowWithoutRedirectionSurface) { // Win32
if (Window.window !== contentText._lastWindowForNoRedirectionSurface) {
const ret = MainCtx.createWindowWithoutRedirectionSurface(Window.window)
console.debug("MainCtx::createWindowWithoutRedirectionSurface(): returned %1 for window %2.".arg(ret).arg(Window.window))
contentText._lastWindowForNoRedirectionSurface = Window.window
}
}
- })
- }
+ }
+ })
}
readonly property real maxContentWidth: (control.popupType === 1 /* Popup.Window */)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c0ca284385fb62c6150c0f1b3cc432f92d936865
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c0ca284385fb62c6150c0f1b3cc432f92d936865
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