mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-03 11:12:30 +08:00
fix #9017
This commit is contained in:
@@ -1666,7 +1666,7 @@ dbus_set_notification_callback(PyObject *self UNUSED, PyObject *callback) {
|
||||
#define send_dbus_notification_event_to_python(event_type, a, b) { \
|
||||
if (dbus_notification_callback) { \
|
||||
const char call_args_fmt[] = {'s', \
|
||||
_Generic((a), unsigned long : 'k', unsigned long long : 'K'), _Generic((b), unsigned long : 'k', const char* : 's') }; \
|
||||
_Generic((a), unsigned long : 'k', unsigned long long : 'K'), _Generic((b), unsigned long : 'k', const char* : 's'), '\0' }; \
|
||||
RAII_PyObject(ret, PyObject_CallFunction(dbus_notification_callback, call_args_fmt, event_type, a, b)); \
|
||||
if (!ret) PyErr_Print(); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user