mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 23:20:17 +01:00
Remove redundant device pointer from device notify event
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
78c2b71c23
commit
a93a0597c5
1 changed files with 0 additions and 9 deletions
|
|
@ -48,7 +48,6 @@ struct libinput_event {
|
|||
|
||||
struct libinput_event_device_notify {
|
||||
struct libinput_event base;
|
||||
struct libinput_device *device;
|
||||
};
|
||||
|
||||
struct libinput_event_keyboard {
|
||||
|
|
@ -611,10 +610,6 @@ notify_added_device(struct libinput_device *device)
|
|||
if (!added_device_event)
|
||||
return;
|
||||
|
||||
*added_device_event = (struct libinput_event_device_notify) {
|
||||
.device = device,
|
||||
};
|
||||
|
||||
post_base_event(device,
|
||||
LIBINPUT_EVENT_DEVICE_ADDED,
|
||||
&added_device_event->base);
|
||||
|
|
@ -629,10 +624,6 @@ notify_removed_device(struct libinput_device *device)
|
|||
if (!removed_device_event)
|
||||
return;
|
||||
|
||||
*removed_device_event = (struct libinput_event_device_notify) {
|
||||
.device = device,
|
||||
};
|
||||
|
||||
post_base_event(device,
|
||||
LIBINPUT_EVENT_DEVICE_REMOVED,
|
||||
&removed_device_event->base);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue