[vlc-commits] [Git][videolan/vlc][master] qml: take exclusive grab in CSD title bar tap handler

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Feb 20 13:26:28 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7efd2237 by Fatih Uzunoglu at 2025-02-20T12:57:28+00:00
qml: take exclusive grab in CSD title bar tap handler

We need to take exclusive grab here, otherwise handlers
beneath that take exclusive grab may act on press.

This is the case when media library view items go under
the title bar. Unfortunately in controls we have to use
`TapHandler.ReleaseWithinBounds` as gesture policy for
the tap handlers due to a bug present in Qt 6.2.

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/CSDTitlebarTapNDrapHandler.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/CSDTitlebarTapNDrapHandler.qml
=====================================
@@ -45,7 +45,8 @@ Item {
             }
 
         }
-        gesturePolicy: TapHandler.DragThreshold
+
+        gesturePolicy: TapHandler.ReleaseWithinBounds
     }
 
     HoverHandler {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7efd22371c8260f2b9a672474d3c264e576fcf65

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7efd22371c8260f2b9a672474d3c264e576fcf65
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list