kcm_keyboard: Use udev device notifier when xcb-xinput is not available
Review Request #125465 - Created Sept. 30, 2015 and submitted
xcb-xinput is not available on some distributions (eg. Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733227).
This patch adds udev device discovery to reapply settings when adding new keyboard / mouse.
Plugging in keyboard is now correctly recognized.
Did you check KWin's udev helper classes? Instead of re-inventing the wheel it might be better to share the code in case it would be useful. It's in kwin.git/udev.h and udev.cpp
Use configure file for defines + cleanup
- not need to find _XiGetDevicePresenceNotifyEvent because it is not used
- we need both XCB and X11 XInput, so merge them to single define
Revision 2 (+303 -39)