From 4a04f27fdeaffa15156cfe24a38bc728e860ad03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 Sep 2018 19:58:23 +0530 Subject: [PATCH] Fix #991 --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 4c11f0bb8..2e7b9fb7c 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -339,7 +339,7 @@ static inline void get_window_dpi(GLFWwindow *w, double *x, double *y) { GLFWmonitor *monitor = NULL; if (w) monitor = current_monitor(w); - if (monitor == NULL) monitor = glfwGetPrimaryMonitor(); + if (monitor == NULL) { PyErr_Print(); monitor = glfwGetPrimaryMonitor(); } float xscale = 1, yscale = 1; if (monitor) glfwGetMonitorContentScale(monitor, &xscale, &yscale); #ifdef __APPLE__