Check for valid xkb state before trying to update modifiers from it.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-07-17 16:53:04 +01:00
parent 6aab5a9690
commit 4d05ee2d3d
1 changed files with 1 additions and 0 deletions

View File

@ -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);