mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +02:00
Merge branch 'expose-wakeup-main-loop' of https://github.com/sirno/kitty
This commit is contained in:
@@ -892,6 +892,10 @@ def cell_size_for_window(os_window_id: int) -> Tuple[int, int]:
|
||||
pass
|
||||
|
||||
|
||||
def wakeup_main_loop() -> None:
|
||||
pass
|
||||
|
||||
|
||||
class Region:
|
||||
left: int
|
||||
top: int
|
||||
|
||||
@@ -1128,6 +1128,11 @@ PYWRAP0(destroy_global_data) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PYWRAP0(wakeup_main_loop) {
|
||||
wakeup_main_loop();
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static void
|
||||
destroy_mock_window(PyObject *capsule) {
|
||||
Window *w = PyCapsule_GetPointer(capsule, "Window");
|
||||
@@ -1305,6 +1310,7 @@ static PyMethodDef module_methods[] = {
|
||||
MW(patch_global_colors, METH_VARARGS),
|
||||
MW(create_mock_window, METH_VARARGS),
|
||||
MW(destroy_global_data, METH_NOARGS),
|
||||
MW(wakeup_main_loop, METH_NOARGS),
|
||||
|
||||
{NULL, NULL, 0, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user