Re: [PATCH libinput 7/8] evdev: Release still pressed keys/buttons when removing device

2014-07-16 Thread Peter Hutterer
On Wed, Jul 16, 2014 at 10:39:12PM +0200, Jonas Ådahl wrote: > Keep track of pressed keys and buttons in a bitmask array and iterate > through it on device removal releasing every still pressed key. fwiw, the kernel should release all keys on disconnect these days, but for the manual removal it's

[PATCH libinput 7/8] evdev: Release still pressed keys/buttons when removing device

2014-07-16 Thread Jonas Ådahl
Keep track of pressed keys and buttons in a bitmask array and iterate through it on device removal releasing every still pressed key. This commit enables _GNU_SOURCE features in evdev.c, more specifically static_assert(). This is supported by gcc 4.6 and above, but is not part of the C standard un