From 662ab0df456fc71f695bd4f292670535144e0480 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Mon, 9 Apr 2018 12:59:17 +0200 Subject: [PATCH] Allow background opacity for values in range [0.91, 0.99] --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index c8c4aac20..3b54ddad9 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -334,7 +334,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) { PyErr_SetString(PyExc_ValueError, "Too many windows"); return NULL; } - bool want_semi_transparent = (1.0 - OPT(background_opacity) > 0.1) ? true : false; + bool want_semi_transparent = (1.0 - OPT(background_opacity) >= 0.01) ? true : false; glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, want_semi_transparent); GLFWwindow *glfw_window = glfwCreateWindow(width, height, title, NULL, global_state.num_os_windows ? global_state.os_windows[0].handle : NULL); if (glfw_window == NULL) {