mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-07 02:08:38 +00:00
If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.
https://sw.kovidgoyal.net/kitty/
surfaceHandleEnter() and surfaceHandleLeave() passed the event's output argument straight to wl_output_get_user_data(). Wayland delivers object arguments as NULL when the object was destroyed client-side before the event was dispatched, even for arguments declared non-nullable, so this segfaults whenever a wl_output global goes away while a window is open. Easily reproduced with a hardware KVM or a monitor input switch. Also fixes two pre-existing problems in surfaceHandleLeave(): - The removal loop stopped at monitorsCount - 1, so it never compared the last entry, and the trailing unconditional window->wl.monitors[--window->wl.monitorsCount] = NULL dropped the last monitor whether or not it was the one that was left. A leave for a monitor not in the list therefore evicted an unrelated one. - That same statement ran even when monitorsCount was 0, writing to monitors[-1] and leaving the count negative. Both are replaced with the remove_i_from_array() loop already used for this array in registryHandleGlobalRemove(). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .github | ||
| 3rdparty | ||
| bypy | ||
| docs | ||
| gen | ||
| glad | ||
| glfw | ||
| kittens | ||
| kitty | ||
| kitty_tests | ||
| logo | ||
| shell-integration | ||
| terminfo | ||
| tools | ||
| .clang-format | ||
| .clang-format-for-slang | ||
| .clang-format-ignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| __main__.py | ||
| autoformat | ||
| benchmark.py | ||
| Brewfile | ||
| build-terminfo | ||
| CHANGELOG.rst | ||
| CONTRIBUTING.md | ||
| count-lines-of-code | ||
| dev.sh | ||
| embeds.go | ||
| go.mod | ||
| go.sum | ||
| INSTALL.md | ||
| key_encoding.json | ||
| LICENSE | ||
| local-agent.md | ||
| Makefile | ||
| publish.py | ||
| pyproject.toml | ||
| README.asciidoc | ||
| rsync-and-build.sh | ||
| SECURITY.md | ||
| session.vim | ||
| setup.py | ||
| shell.nix | ||
| staticcheck.conf | ||
| test.py | ||
| update-on-ox | ||
= kitty - the fast, feature-rich, cross-platform, GPU based terminal If you live in the terminal, *kitty* is made for **you**! See https://sw.kovidgoyal.net/kitty/[the kitty website]. image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"] https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions] To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the https://www.reddit.com/r/KittyTerminal[Reddit community] Packaging status in various repositories: image:https://repology.org/badge/vertical-allrepos/kitty-terminal.svg?columns=3&header=kitty["Packaging status", link="https://repology.org/project/kitty-terminal/versions"]