aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-07-07 00:21:51 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-07-07 00:21:51 -0500
commit8e03bce6217117f0687cd727ae2c47bdd3c0fe5a (patch)
tree48442b20325c29a30c06a6bd5f4a63c10f5cd525
parent87fc3a58ab72ff6ff6eb6e1156ff208fcb9e3739 (diff)
only call wlr_seat_keyboard_notify_enter() if a keyboard is found
-rw-r--r--dwl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 7a585d5..0c80691 100644
--- a/dwl.c
+++ b/dwl.c
@@ -613,8 +613,6 @@ arrangelayers(Monitor *m)
if (kb)
wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface,
kb->keycodes, kb->num_keycodes, &kb->modifiers);
- else
- wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface, NULL, 0, NULL);
return;
}
}
@@ -1185,8 +1183,6 @@ focusclient(Client *c, int lift)
if (kb)
wlr_seat_keyboard_notify_enter(seat, client_surface(c),
kb->keycodes, kb->num_keycodes, &kb->modifiers);
- else
- wlr_seat_keyboard_notify_enter(seat, client_surface(c), NULL, 0, NULL);
/* Activate the new client */
client_activate_surface(client_surface(c), 1);