mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
wayland: seat: log keyboard/pointer capability
This commit is contained in:
parent
11373a6561
commit
5539af2597
1 changed files with 4 additions and 1 deletions
|
|
@ -160,7 +160,10 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||||
{
|
{
|
||||||
struct seat *seat = data;
|
struct seat *seat = data;
|
||||||
assert(seat->wl_seat == wl_seat);
|
assert(seat->wl_seat == wl_seat);
|
||||||
//struct wayland *wayl = data;
|
|
||||||
|
LOG_DBG("%s: keyboard=%s, pointer=%s", seat->name,
|
||||||
|
(caps & WL_SEAT_CAPABILITY_KEYBOARD) ? "yes" : "no",
|
||||||
|
(caps & WL_SEAT_CAPABILITY_POINTER) ? "yes" : "no");
|
||||||
|
|
||||||
if (caps & WL_SEAT_CAPABILITY_KEYBOARD) {
|
if (caps & WL_SEAT_CAPABILITY_KEYBOARD) {
|
||||||
if (seat->wl_keyboard == NULL) {
|
if (seat->wl_keyboard == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue