From e800c9d74f2bd31402cf95aa7356f2778126e457 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Sat, 19 Apr 2025 20:20:07 -0400 Subject: logs --- sway/input/seat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sway/input/seat.c b/sway/input/seat.c index a01e71d7..7433aed3 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -166,7 +166,11 @@ static void seat_keyboard_notify_enter(struct sway_seat *seat, assert(sway_keyboard && "Cannot find sway_keyboard for seat keyboard"); struct sway_shortcut_state *state = &sway_keyboard->state_pressed_sent; - sway_log(SWAY_ERROR, "Calling wlr_seat_keyboard_notify_enter"); + sway_log(SWAY_ERROR, "Calling wlr_seat_keyboard_notify_enter for seat '%s' on surface with role '%s'", + seat->wlr_seat->name, + surface->role ? surface->role->name : "No Role"); + for (size_t i=0; i < state->npressed; i++) + sway_log(SWAY_ERROR, "\n\t\t\t\t\tkeycode = [%d]", state->pressed_keycodes[i]); wlr_seat_keyboard_notify_enter(seat->wlr_seat, surface, state->pressed_keycodes, state->npressed, &keyboard->modifiers); } @@ -1329,8 +1333,10 @@ void seat_set_focus_layer(struct sway_seat *seat, if (seat->focused_layer == layer) { return; } + // Does it not get enabled though? seat_set_focus_surface(seat, layer->surface, true); - if (layer->namespace) sway_log(SWAY_ERROR, "seat->focused_layer = %s for seat (%s)", layer->namespace, seat->wlr_seat->name); + if (layer->namespace) sway_log(SWAY_ERROR, "seat->focused_layer = %s for seat (%s)", + layer->namespace, seat->wlr_seat->name); seat->focused_layer = layer; } -- cgit v1.2.3