This reverts commit d8284befd3. See https://github.com/kovidgoyal/kitty/issues/5766#issuecomment-1363025173
d8284befd3