[vlc-commits] [Git][videolan/vlc][master] qml: do not let pip player to be horizontally dragged outside the safe area

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jul 25 05:09:55 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
5d8a8ab7 by Fatih Uzunoglu at 2026-07-25T04:36:07+00:00
qml: do not let pip player to be horizontally dragged outside the safe area

We already care about the vertical margins indirectly, through
caring about local top bar's and loader update pane's `y`. So
this only addresses the horizontal dragging.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/qml/MainDisplay.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/MainDisplay.qml
=====================================
@@ -946,8 +946,8 @@ FocusScope {
             visible: g_mainDisplay._showMiniPlayer && MainCtx.hasEmbededVideo
             enabled: g_mainDisplay._showMiniPlayer && MainCtx.hasEmbededVideo
 
-            dragXMin: 0
-            dragXMax: g_mainDisplay.width - playerPip.width
+            dragXMin: VLCStyle.applicationHorizontalMargin
+            dragXMax: g_mainDisplay.width - playerPip.width - VLCStyle.applicationHorizontalMargin
             dragYMin: localTopbar.y + localTopbar.height
             dragYMax: loaderUpdatePane.y - playerPip.height
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d8a8ab7fca3a4d7d1a2bb31b9f1c60ca969801b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d8a8ab7fca3a4d7d1a2bb31b9f1c60ca969801b
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