[vlc-devel] [PATCH] window: fix key-pressed event not working on display
Alexandre Janniaux
ajanni at videolabs.io
Tue Jun 18 12:02:07 CEST 2019
Regression from 43bb71afbde570f7e0e270c25cfc920f11fac3c4
---
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,
--
2.22.0
More information about the vlc-devel
mailing list