mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
parent
5ca88af557
commit
5cc7342606
13 changed files with 109 additions and 13 deletions
|
|
@ -32,8 +32,10 @@ struct wlr_keyboard_impl impl = {
|
|||
struct wlr_keyboard *wlr_libinput_keyboard_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
||||
calloc(1, sizeof(struct wlr_libinput_keyboard));
|
||||
struct wlr_libinput_keyboard *wlr_libinput_kb;
|
||||
if (!(wlr_libinput_kb= calloc(1, sizeof(struct wlr_libinput_keyboard)))) {
|
||||
return NULL;
|
||||
}
|
||||
wlr_libinput_kb->libinput_dev = libinput_dev;
|
||||
libinput_device_ref(libinput_dev);
|
||||
libinput_device_led_update(libinput_dev, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue