Re: [PATCH libinput v2 3/5] Add evdev_dispatch interface for lid switch

2017-01-13 Thread jye836
On Thu, Jan 12, 2017 at 2:21 PM, Peter Hutterer wrote: doh. not sure how I missed this in the first one, but this needs an extra check for the event code too, otherwise we'll be sending switch lid events for any switch on the device. We filter for SW_LID but if a device happens to have switch

Re: [PATCH libinput v2 3/5] Add evdev_dispatch interface for lid switch

2017-01-11 Thread Peter Hutterer
On Tue, Jan 10, 2017 at 12:24:23PM +1100, James Ye wrote: > Create a lid_switch_interface to handle lid switch events, so the touchpad can > be disabled when lid is closed. > > Signed-off-by: James Ye > --- > Changes since v1: > - style and text fixes > > src/evdev.c | 94 > ++

[PATCH libinput v2 3/5] Add evdev_dispatch interface for lid switch

2017-01-09 Thread James Ye
Create a lid_switch_interface to handle lid switch events, so the touchpad can be disabled when lid is closed. Signed-off-by: James Ye --- Changes since v1: - style and text fixes src/evdev.c | 94 +++-- src/evdev.h | 8 ++ 2 files c