ecore-x: filter XkbNewKeyboardNotifyEvent before emitting ecore-x event

this is only relevant to watchers of the ecore-x event if there is a keycode
change

@fix
This commit is contained in:
Mike Blumenkrantz 2018-01-24 16:01:17 -05:00
parent 4b38020f89
commit 067ec7bd5c
1 changed files with 5 additions and 0 deletions

View File

@ -2679,6 +2679,11 @@ _ecore_x_event_handle_xkb(XEvent *xevent)
xkbmapping = (XkbMapNotifyEvent *)xkbev;
XkbRefreshKeyboardMapping(xkbmapping);
}
else
{
XkbNewKeyboardNotifyEvent *xkbnkn = (void*)xkbev;
if (!(xkbnkn->changed & XkbNKN_KeycodesMask)) return;
}
ecore_event_add(ECORE_X_EVENT_XKB_NEWKBD_NOTIFY, NULL, free_hash, NULL);
eina_hash_add(emitted_events, &xkbev->new_kbd.serial, (void*) 1);
}