mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Add debug print for focus change events
This commit is contained in:
parent
34cbf5ceac
commit
ffa8c1c498
1 changed files with 3 additions and 0 deletions
|
|
@ -435,6 +435,9 @@ static id_type focus_counter = 0;
|
|||
static void
|
||||
window_focus_callback(GLFWwindow *w, int focused) {
|
||||
if (!set_callback_window(w)) return;
|
||||
if (OPT(debug_keyboard)) {
|
||||
fprintf(stderr, "\x1b[35mon_focus_change\x1b[m: window id: 0x%llu focused: %d\n", global_state.callback_os_window->id, focused);
|
||||
}
|
||||
// There exist some numbnut Wayland compositors, like kwin, that send mouse
|
||||
// press events before focus gained events. So only clear the active drag
|
||||
// window if it is not the focused window. See https://github.com/kovidgoyal/kitty/issues/6095
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue