From 85ef3724f1af40cc32454c407534be4832ee403e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 May 2021 14:02:17 +0530 Subject: [PATCH] Proper prefix when reporting Move events --- kitty/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/mouse.c b/kitty/mouse.c index 4eeba65f0..1f5d3641d 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -674,7 +674,7 @@ mouse_event(int button, int modifiers, int action) { bool in_tab_bar; unsigned int window_idx = 0; Window *w = NULL; - debug("%s mouse_button: %d %s", action == GLFW_RELEASE ? "\x1b[32mRelease\x1b[m" : "\x1b[31mPress\x1b[m", button, format_mods(modifiers)); + debug("%s mouse_button: %d %s", action == GLFW_RELEASE ? "\x1b[32mRelease\x1b[m" : (button < 0 ? "\x1b[36mMove\x1b[m" : "\x1b[31mPress\x1b[m"), button, format_mods(modifiers)); if (global_state.active_drag_in_window) { if (button == -1) { // drag move w = window_for_id(global_state.active_drag_in_window);