Hi, On 25 June 2012 03:16, Peter Hutterer <[email protected]> wrote: > @@ -462,15 +469,18 @@ AccessXFilterPressEvent(DeviceEvent *event, > DeviceIntPtr keybd) > if (ctrls->enabled_ctrls & XkbAccessXKeysMask) { > /* check for magic sequences */ > if ((sym[0] == XK_Shift_R) || (sym[0] == XK_Shift_L)) { > + struct slow_keys_enable_t *ske = malloc(sizeof(*ske)); > + ske->keybd = keybd; > + ske->key = key;
This would probably be best off as a static in SrvXkbInfoRec to avoid allocating one for every press of shift ... other than that, looks fine to me. Acked-by: Daniel Stone <[email protected]> Cheers, Daniel _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
