From b269cab0b88a9d5e7a656e8e337bbdc0e8c1fadd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 Nov 2018 15:49:01 +0530 Subject: [PATCH] Fix unused function on macOS --- kitty/glfw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/glfw.c b/kitty/glfw.c index cc8b359c1..cd5b10bce 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -310,6 +310,7 @@ make_os_window_context_current(OSWindow *w) { } +#ifndef __APPLE__ static GLFWmonitor* current_monitor(GLFWwindow *window) { // Find the monitor that has the maximum overlap with this window @@ -344,6 +345,7 @@ current_monitor(GLFWwindow *window) { return bestmonitor; } +#endif static inline void get_window_dpi(GLFWwindow *w, double *x, double *y) {