mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-01-02 02:50:11 +01:00
Actually make the min queue size a minimum
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
779654839a
commit
1c425e9837
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ init_event_queue(struct libevdev *dev)
|
|||
nevents += num_mt_axes * (nslots - 1);
|
||||
}
|
||||
|
||||
return queue_alloc(dev, min(MIN_QUEUE_SIZE, nevents * 2));
|
||||
return queue_alloc(dev, max(MIN_QUEUE_SIZE, nevents * 2));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue