From e811f03011ae2b01f56086878d5d172f31ba3e33 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 May 2021 10:29:42 +0530 Subject: [PATCH] Match key names --- kitty/mouse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty/mouse.c b/kitty/mouse.c index d0b2dbcc2..1e515dbdd 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -123,10 +123,10 @@ encode_mouse_scroll(Window *w, bool upwards, int mods) { // }}} static inline void -dispatch_mouse_event(Window *w, int button, int count, int modifiers) { +dispatch_mouse_event(Window *w, int button, int count, int modifiers, bool grabbed) { if (w->render_data.screen && PyCallable_Check(w->render_data.screen->callbacks)) { - PyObject *callback_ret = PyObject_CallMethod(w->render_data.screen->callbacks, "on_mouse_event", "{si si si}", - "button", button, "count", count, "modifiers", modifiers); + PyObject *callback_ret = PyObject_CallMethod(w->render_data.screen->callbacks, "on_mouse_event", "{si si si sO}", + "button", button, "repeat_count", count, "mods", modifiers, "grabbed", grabbed ? Py_True : Py_False); if (callback_ret == NULL) PyErr_Print(); else Py_DECREF(callback_ret); }