From 4d05ee2d3d91cae78599fd077a76682b6b955145 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 17 Jul 2013 16:53:04 +0100 Subject: [PATCH] Check for valid xkb state before trying to update modifiers from it. Signed-off-by: Chris Michael --- src/lib/ecore_wayland/ecore_wl_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index d76fe193a5..ec533ead51 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -728,6 +728,7 @@ _ecore_wl_input_cb_keyboard_modifiers(void *data, struct wl_keyboard *keyboard E LOGFN(__FILE__, __LINE__, __FUNCTION__); if (!(input = data)) return; + if (!input->xkb.state) return; xkb_state_update_mask(input->xkb.state, depressed, latched, locked, 0, 0, group);