Always allocate an event queue
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 24 Dec 2013 03:50:10 +0000 (13:50 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 7 Jan 2014 20:28:08 +0000 (21:28 +0100)
commitc0ac1ef9f298fdb8be08c83ce37157356eaf19e2
tree4616212a6ac34cb7dcb1f865f2c0229be34c1f9a
parentfaee8fe1a7e13fdc7e6c3d89291e0fe7ad9a3576
Always allocate an event queue

On the typical setup we have at least 3 events pending as soon as we hook it
up (seat added, device added, capability). In the udev case we get up to > 64
events without even having input events on my laptop with only two extra
devices connected. So always allocate an event buffer to avoid spurious
resizing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.c