[vlc-commits] window: fix key-pressed event not working on display

Alexandre Janniaux git at videolan.org
Tue Jun 18 12:16:38 CEST 2019


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Jun 18 12:02:07 2019 +0200| [8e11727b939014cc5069f9405942fdf442365838] | committer: Jean-Baptiste Kempf

window: fix key-pressed event not working on display

Regression from 43bb71afbde570f7e0e270c25cfc920f11fac3c4

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/video_output/window.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/video_output/window.c b/src/video_output/window.c
index 48cd109745..16ebf9ef5a 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -326,10 +326,7 @@ static void vout_display_window_MouseEvent(vout_window_t *window,
 static void vout_display_window_KeyboardEvent(vout_window_t *window,
                                               unsigned key)
 {
-    vout_display_window_t *state = window->owner.sys;
-    vout_thread_t *vout = state->vout;
-
-    var_SetInteger(vout, "key-pressed", key);
+    var_SetInteger(vlc_object_instance(window), "key-pressed", key);
 }
 
 static void vout_display_window_OutputEvent(vout_window_t *window,



More information about the vlc-commits mailing list