diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-16 08:48:03 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-16 09:18:12 +0200 |
commit | 880c239657bc81d244ae8fd3371b7b8a21bc8f07 (patch) | |
tree | 9506d3cea6374f2d8b193babf5507328957afe1b /include/xwayland/internals.h | |
parent | 19d6442f52743d50d10c796d7146f58c251f67fe (diff) |
libinput: fail if no input found on init
This runs through events pending at init on initialization so we can
tell if some devices are available.
Note that with the way wlr_device_lists is managed, this checks that
there is at least one device we handle - it doesn't have to be a
keyboard, but there is at least a mouse or tablet_pad or something
that we care about.
Instead of failing inconditionally it might be better to leave the
decision to the user, e.g. add a "backend_has_devices" function to
call later.
(Tested by moving /dev/input off)
Fixes #24.
Diffstat (limited to 'include/xwayland/internals.h')
0 files changed, 0 insertions, 0 deletions