Commit 53231d2c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB-Window: use keyboard-events variable

parent c81f6520
...@@ -273,7 +273,10 @@ static int Open (vlc_object_t *obj) ...@@ -273,7 +273,10 @@ static int Open (vlc_object_t *obj)
wnd->sys = p_sys; wnd->sys = p_sys;
p_sys->conn = conn; 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; p_sys->root = scr->root;
/* ICCCM /* ICCCM
...@@ -605,7 +608,7 @@ static int EmOpen (vlc_object_t *obj) ...@@ -605,7 +608,7 @@ static int EmOpen (vlc_object_t *obj)
p_sys->root = geo->root; p_sys->root = geo->root;
free (geo); free (geo);
if (var_CreateGetInteger (obj, "vout-event") != 3) /* FIXME: <- cleanup */ if (var_CreateGetBool (obj, "keyboard-events"))
{ {
p_sys->keys = CreateKeyHandler (obj, conn); p_sys->keys = CreateKeyHandler (obj, conn);
if (p_sys->keys != NULL) if (p_sys->keys != NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment