diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-04-19 20:20:07 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-04-19 20:20:07 -0400 |
| commit | ed6f3dd36b6fbdfc98ec0a705e862815a1c03666 (patch) | |
| tree | 3e1cd855ee03c036c28ca19ab902159663e35979 | |
| parent | e31ca56b3ab05a02893aedd3171441901fd7d993 (diff) | |
| -rw-r--r-- | sway/input/seat.c | 10 |
1 files 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; } |
