mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
input: include seat name in debug log output
This commit is contained in:
parent
12a1688ce3
commit
b5776487ab
1 changed files with 4 additions and 4 deletions
8
input.c
8
input.c
|
|
@ -301,8 +301,8 @@ keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
struct wl_window *win = wl_surface_get_user_data(surface);
|
struct wl_window *win = wl_surface_get_user_data(surface);
|
||||||
struct terminal *term = win->term;
|
struct terminal *term = win->term;
|
||||||
|
|
||||||
LOG_DBG("keyboard_enter: keyboard=%p, serial=%u, surface=%p",
|
LOG_DBG("%s: keyboard_enter: keyboard=%p, serial=%u, surface=%p",
|
||||||
wl_keyboard, serial, surface);
|
seat->name, wl_keyboard, serial, surface);
|
||||||
|
|
||||||
term_kbd_focus_in(term);
|
term_kbd_focus_in(term);
|
||||||
seat->kbd_focus = term;
|
seat->kbd_focus = term;
|
||||||
|
|
@ -895,8 +895,8 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
|
||||||
struct terminal *old_moused = seat->mouse_focus;
|
struct terminal *old_moused = seat->mouse_focus;
|
||||||
|
|
||||||
LOG_DBG(
|
LOG_DBG(
|
||||||
"pointer-leave: pointer=%p, serial=%u, surface = %p, old-moused = %p",
|
"%s: pointer-leave: pointer=%p, serial=%u, surface = %p, old-moused = %p",
|
||||||
wl_pointer, serial, surface, old_moused);
|
seat->name, wl_pointer, serial, surface, old_moused);
|
||||||
|
|
||||||
if (seat->pointer.xcursor_callback != NULL) {
|
if (seat->pointer.xcursor_callback != NULL) {
|
||||||
/* A cursor frame callback may never be called if the pointer leaves our surface */
|
/* A cursor frame callback may never be called if the pointer leaves our surface */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue