Add debug print for focus change events
This commit is contained in:
parent
34cbf5ceac
commit
ffa8c1c498
@ -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…
x
Reference in New Issue
Block a user