[vlc-commits] macosx: Fix for FS controller jumping to the top of fullscreen window

David Fuhrmann git at videolan.org
Sun Jan 29 22:49:23 CET 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jan 29 19:46:28 2017 +0100| [0e692856fe8b007c568df812640eddbb1f0629a8] | committer: David Fuhrmann

macosx: Fix for FS controller jumping to the top of fullscreen window

This bug lead to jumping to the top of the window on monitors with
a non-zero based x coordinate.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e692856fe8b007c568df812640eddbb1f0629a8
---

 modules/gui/macosx/VLCFSPanelDraggableView.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCFSPanelDraggableView.m b/modules/gui/macosx/VLCFSPanelDraggableView.m
index f257894..1fa0f04 100644
--- a/modules/gui/macosx/VLCFSPanelDraggableView.m
+++ b/modules/gui/macosx/VLCFSPanelDraggableView.m
@@ -61,7 +61,7 @@
         if (newFrame.origin.x < limitFrame.origin.x)
             newFrame.origin.x = limitFrame.origin.x;
         if (newFrame.origin.y < limitFrame.origin.y)
-            newFrame.origin.y = limitFrame.origin.x;
+            newFrame.origin.y = limitFrame.origin.y;
 
         // Limit size (could be needed after resolution changes)
         if (newFrame.size.height > limitFrame.size.height)



More information about the vlc-commits mailing list