From 3363de8549ce8932b8f8ef4043867bf0b9f7ebb5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Mar 2024 14:03:23 +0530 Subject: [PATCH] ... --- kitty/glfw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/glfw.c b/kitty/glfw.c index fea58602d..89467c86d 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -31,6 +31,7 @@ extern void cocoa_update_menu_bar_title(PyObject*); extern size_t cocoa_get_workspace_ids(void *w, size_t *workspace_ids, size_t array_sz); extern monotonic_t cocoa_cursor_blink_interval(void); +#define debug(...) if (global_state.debug_rendering) { fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic())); fprintf(stderr, __VA_ARGS__); } typedef struct mouse_cursor { GLFWcursor *glfw; @@ -1320,6 +1321,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) { glfwShowWindow(glfw_window); #endif w->is_damaged = true; + debug("OS Window created\n"); return PyLong_FromUnsignedLongLong(w->id); }