[vlc-devel] commit: XCB-Window: use keyboard-events variable ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Oct 29 22:14:54 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 29 23:08:34 2009 +0200| [53231d2c1e9e7e93c6273b6078a29ab1221740ed] | committer: Rémi Denis-Courmont
XCB-Window: use keyboard-events variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53231d2c1e9e7e93c6273b6078a29ab1221740ed
---
modules/video_output/xcb/window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index 29f3193..2f48e1e 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -273,7 +273,10 @@ static int Open (vlc_object_t *obj)
wnd->sys = p_sys;
p_sys->conn = conn;
- p_sys->keys = CreateKeyHandler (obj, conn);
+ if (var_CreateGetBool (obj, "keyboard-events"))
+ p_sys->keys = CreateKeyHandler (obj, conn);
+ else
+ p_sys->keys = NULL;
p_sys->root = scr->root;
/* ICCCM
@@ -605,7 +608,7 @@ static int EmOpen (vlc_object_t *obj)
p_sys->root = geo->root;
free (geo);
- if (var_CreateGetInteger (obj, "vout-event") != 3) /* FIXME: <- cleanup */
+ if (var_CreateGetBool (obj, "keyboard-events"))
{
p_sys->keys = CreateKeyHandler (obj, conn);
if (p_sys->keys != NULL)
More information about the vlc-devel
mailing list