This commit is contained in:
Kovid Goyal 2024-07-22 07:08:01 +05:30
parent e97de84668
commit a927e1e4f4
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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;
}