From b7b1a1f1c6c3ce7497a387e33a1cdae2f90636fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Feb 2019 14:32:56 +0530 Subject: [PATCH] Blank the window at creation so that there is no initial flash of color changing, in case the background color is not black Fixes #1404 --- kitty/glfw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/glfw.c b/kitty/glfw.c index a1b7368f8..a56808fea 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -599,6 +599,10 @@ create_os_window(PyObject UNUSED *self, PyObject *args) { warned = true; } } + // blank the window once so that there is no initial flash of color + // changing, in case the background color is not black + blank_os_window(w); + swap_window_buffers(w); return PyLong_FromUnsignedLongLong(w->id); }