diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2013-10-17 23:04:05 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-21 13:45:03 -0700 |
commit | d6e1c34405187fc4d582311c0efc1caf0ea6b1f9 (patch) | |
tree | fc1c067e2ca83a9dcbccfff32ce8b5a8be01804c /src/evdev.h | |
parent | 8e6f376ef0beb4b2f619a32120a758f3667391b2 (diff) |
evdev: Reference count input device's seat capabilities
When the only input device of a certain seat capability is unplugged,
stop advertising the capability.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h index 5e4d11ac..e146d1a4 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -49,6 +49,12 @@ enum evdev_device_capability { EVDEV_TOUCH = (1 << 4), }; +enum evdev_device_seat_capability { + EVDEV_SEAT_POINTER = (1 << 0), + EVDEV_SEAT_KEYBOARD = (1 << 1), + EVDEV_SEAT_TOUCH = (1 << 2) +}; + struct evdev_device { struct weston_seat *seat; struct wl_list link; @@ -80,6 +86,7 @@ struct evdev_device { enum evdev_event_type pending_event; enum evdev_device_capability caps; + enum evdev_device_seat_capability seat_caps; int is_mt; }; |