[vlc-commits] vout: x11: fix build with HAVE_XKBCOMMON
Thomas Guillem
git at videolan.org
Tue Nov 27 17:19:06 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 27 16:34:09 2018 +0100| [5a83969903fae75f4a4413174b6e43bc00f5fd07] | committer: Thomas Guillem
vout: x11: fix build with HAVE_XKBCOMMON
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a83969903fae75f4a4413174b6e43bc00f5fd07
---
modules/video_output/xcb/window.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index e7cb3510bd..1294385752 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -231,6 +231,7 @@ static int ProcessEvent(vout_window_t *wnd, xcb_generic_event_t *ev)
case XCB_KEY_PRESS:
{
#ifdef HAVE_XKBCOMMON
+ vout_window_sys_t *sys = wnd->sys;
xcb_key_press_event_t *e = (xcb_key_press_event_t *)ev;
uint_fast32_t vk = vlc_xkb_get_one(sys->xkb.state, e->detail);
@@ -289,7 +290,9 @@ static int ProcessEvent(vout_window_t *wnd, xcb_generic_event_t *ev)
break;
default:
+ {
#ifdef HAVE_XKBCOMMON
+ vout_window_sys_t *sys = wnd->sys;
if (sys->xkb.ctx != NULL && ev->response_type == sys->xkb.base)
{
ProcessKeyboardEvent(wnd, ev);
@@ -297,6 +300,7 @@ static int ProcessEvent(vout_window_t *wnd, xcb_generic_event_t *ev)
}
#endif
msg_Dbg (wnd, "unhandled event %"PRIu8, ev->response_type);
+ }
}
free (ev);
More information about the vlc-commits
mailing list