Simon Ser
edbf8bf2ce
input-device: drop wlr_input_device.{vendor,product}
...
These aren't super useful without the bus type. Compositors can
fish back this information from the libinput device if they want to.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3818
10 months ago
Simon Ser
ee70932422
backend/libinput: use NULL to indicate missing device name
...
libinput guarantees that the name is non-NULL, and an empty string
if unset. However wlroots uses NULL to indicate that an input device
name is unset.
10 months ago
Simon Ser
2d9659d765
backend/libinput: use struct initializers for events
...
This is more readable and consistent with the rest of wlroots.
2 years ago
Alexander Orzechowski
ef4baea0e2
Use wl_signal_emit_mutable
2 years ago
Simon Zeni
13d7fa2f03
types/wlr_switch: uniformize events name
3 years ago
Simon Zeni
0d2be496a8
interface/wlr_switch: rework destroy sequence
...
The destroy callback in wlr_switch_impl has been removed. The function
`wlr_switch_finish` has been introduced to clean up the resources owned by a
wlr_switch.
`wlr_input_device_destroy` no longer destroys the wlr_switch, attempting to
destroy a wlr_switch will result in a no-op.
The field `name` has been added to the wlr_switch_impl to be able to identify
a given wlr_switch device.
3 years ago
Simon Zeni
d750c5ac67
backend/libinput: rework switch interface
...
The wlr_libinput_input_device now owns its wlr_switch, instead of creating
a new wlr_libinput_input_device for it.
3 years ago
Simon Zeni
91ba28e020
backend/libinput: remove wlr_input_device_impl
3 years ago
Simon Zeni
0f3b38365d
types/wlr_switch: add base wlr_input_device
...
wlr_switch owns its wlr_input_device. It will be initialized when the
switch is initialized, and finished when the switch is destroyed.
3 years ago
Ryan Walklin
4453757fc9
s/lid_switch/switch_device
...
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
6 years ago
Ryan Walklin
2a3c62b4d2
[WIP][DONTMERGE]Add support for libinput_switch input devices
...
These are used primarily by laptops to signal
the state of the lid (open/closed) and tablet
mode if supported, based on ACPI events.
6 years ago