From 80ad596d3db0c1181d93b5bdbdb3fc44f09196bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Jun 2022 07:17:34 +0530 Subject: [PATCH] Yet another place where macos_colorspace was broken --- kitty/glfw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 32a5467d4..500a513f1 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -771,11 +771,12 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) { #endif } -#ifndef __APPLE__ +#ifdef __APPLE__ + glfwWindowHint(GLFW_COCOA_COLOR_SPACE, OPT(macos_colorspace)); +#else glfwWindowHintString(GLFW_X11_INSTANCE_NAME, wm_class_name); glfwWindowHintString(GLFW_X11_CLASS_NAME, wm_class_class); glfwWindowHintString(GLFW_WAYLAND_APP_ID, wm_class_class); - glfwWindowHint(GLFW_COCOA_COLOR_SPACE, OPT(macos_colorspace)); #endif if (global_state.num_os_windows >= MAX_CHILDREN) {