Add mouse co-ords to debug output for move events
This commit is contained in:
parent
90dc9b6fe6
commit
b931b06941
@ -722,7 +722,10 @@ mouse_event(const int button, int modifiers, int action) {
|
|||||||
bool in_tab_bar;
|
bool in_tab_bar;
|
||||||
unsigned int window_idx = 0;
|
unsigned int window_idx = 0;
|
||||||
Window *w = NULL;
|
Window *w = NULL;
|
||||||
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 (OPT(debug_keyboard)) {
|
||||||
|
if (button < 0) { debug("%s x: %.1f y: %.1f ", "\x1b[36mMove\x1b[m", global_state.callback_os_window->mouse_x, global_state.callback_os_window->mouse_y); }
|
||||||
|
else { debug("%s mouse_button: %d %s", action == GLFW_RELEASE ? "\x1b[32mRelease\x1b[m" : "\x1b[31mPress\x1b[m", button, format_mods(modifiers)); }
|
||||||
|
}
|
||||||
if (global_state.redirect_mouse_handling) {
|
if (global_state.redirect_mouse_handling) {
|
||||||
w = window_for_event(&window_idx, &in_tab_bar);
|
w = window_for_event(&window_idx, &in_tab_bar);
|
||||||
call_boss(mouse_event, "OK iiii dd",
|
call_boss(mouse_event, "OK iiii dd",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user