From a927e1e4f48e11266ea2fb48047e0d970648277e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 22 Jul 2024 07:08:01 +0530 Subject: [PATCH] ... --- kitty/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/state.c b/kitty/state.c index 38bfeffca..3495aa8c6 100644 --- a/kitty/state.c +++ b/kitty/state.c @@ -1381,7 +1381,8 @@ get_mouse_data_for_window(PyObject *self UNUSED, PyObject *args) { id_type os_window_id, tab_id, window_id; PA("KKK", &os_window_id, &tab_id, &window_id); WITH_WINDOW(os_window_id, tab_id, window_id) - return Py_BuildValue("{sI sI sO}", "cell_x", window->mouse_pos.cell_x, "cell_y", window->mouse_pos.cell_y, "in_left_half_of_cell", window->mouse_pos.in_left_half_of_cell); + return Py_BuildValue("{sI sI sO}", "cell_x", window->mouse_pos.cell_x, "cell_y", window->mouse_pos.cell_y, + "in_left_half_of_cell", window->mouse_pos.in_left_half_of_cell ? Py_True: Py_False); END_WITH_WINDOW Py_RETURN_NONE; }