[vlc-commits] video_output: remove write-only "mouse-clicked"

Steve Lhomme git at videolan.org
Tue Aug 25 07:16:02 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug 21 16:20:51 2020 +0200| [8780419a7bf9de9d60ddd891e060a580c074aad4] | committer: Steve Lhomme

video_output: remove write-only "mouse-clicked"

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

 src/video_output/video_output.c | 11 +----------
 src/video_output/vout_intf.c    |  1 -
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 6cf7a42667..cf6cd92d57 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1679,18 +1679,9 @@ static void ThreadProcessMouseState(vout_thread_sys_t *p_vout,
     if (vlc_mouse_HasMoved(&sys->mouse, m))
         var_SetCoords(vout, "mouse-moved", m->i_x, m->i_y);
 
-    if (vlc_mouse_HasButton(&sys->mouse, m)) {
+    if (vlc_mouse_HasButton(&sys->mouse, m))
         var_SetInteger(vout, "mouse-button-down", m->i_pressed);
 
-        if (vlc_mouse_HasPressed(&sys->mouse, m, MOUSE_BUTTON_LEFT)) {
-            /* FIXME? */
-            int x, y;
-
-            var_GetCoords(vout, "mouse-moved", &x, &y);
-            var_SetCoords(vout, "mouse-clicked", x, y);
-        }
-    }
-
     if (m->b_double_click)
         var_ToggleBool(vout, "fullscreen");
     sys->mouse = *m;
diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index ce50616fc9..4fb207ff46 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -276,7 +276,6 @@ void vout_CreateVars( vout_thread_t *p_vout )
     /* Mouse coordinates */
     var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER );
     var_Create( p_vout, "mouse-moved", VLC_VAR_COORDS );
-    var_Create( p_vout, "mouse-clicked", VLC_VAR_COORDS );
 
     /* Device orientation */
     var_Create( p_vout, "viewpoint-moved", VLC_VAR_ADDRESS );



More information about the vlc-commits mailing list