diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-04-13 14:04:47 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-04-13 14:04:47 -0400 |
| commit | e31ca56b3ab05a02893aedd3171441901fd7d993 (patch) | |
| tree | 091bbb059a26500e9a0ca934ba050a469606af70 | |
| parent | 8d4ed82d9b356542667bdcbaba2acd4ea7923578 (diff) | |
logs
logg
| -rw-r--r-- | sway/desktop/layer_shell.c | 1 | ||||
| -rw-r--r-- | sway/input/seat.c | 2 | ||||
| -rw-r--r-- | sway/input/text_input.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index b14a9a4b..2e97a271 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -304,6 +304,7 @@ static void handle_map(struct wl_listener *listener, void *data) { // but only if the currently focused layer has a lower precedence if (!seat->focused_layer || seat->focused_layer->current.layer >= layer_surface->current.layer) { + if (layer_surface->namespace) sway_log(SWAY_ERROR, "Setting focus on new surface %s", layer_surface->namespace); seat_set_focus_layer(seat, layer_surface); } } diff --git a/sway/input/seat.c b/sway/input/seat.c index 1b63f625..a01e71d7 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -166,6 +166,7 @@ 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"); wlr_seat_keyboard_notify_enter(seat->wlr_seat, surface, state->pressed_keycodes, state->npressed, &keyboard->modifiers); } @@ -1329,6 +1330,7 @@ void seat_set_focus_layer(struct sway_seat *seat, return; } 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); seat->focused_layer = layer; } diff --git a/sway/input/text_input.c b/sway/input/text_input.c index c84fac8f..23535970 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c @@ -676,6 +676,7 @@ void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay, && wl_resource_get_client(text_input->input->resource) == wl_resource_get_client(surface->resource)) { if (relay->input_method) { + sway_log(SWAY_ERROR, "Calling wlr_text_input_v3_send_enter"); wlr_text_input_v3_send_enter(text_input->input, surface); } else { text_input_set_pending_focused_surface(text_input, surface); |
