aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/input/seat.c10
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;
}