mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-13 03:59:23 +02:00
2c81a69aadb4193290fcba814df926d3499deac9
During a window title-bar drag, render a semi-transparent tint over the destination window to preview the drop outcome: - Full-window tint (quadrant=5) when hovering any window in swap-based layouts (Tall, Stack, Fat, etc.) or over a title bar — swap is the result so the whole window is highlighted. - Half-window directional tint (quadrant 1-4) when hovering in the Splits layout — a real directional insert happens so only the target half is highlighted. - 150ms fade-in; clears immediately on drop or drag exit. Implementation follows the visual_bell TINT_PROGRAM infrastructure: two new Screen fields (start_drag_overlay_at, drag_overlay_quadrant), draw_drag_preview_overlay() in shaders.c called from draw_cells() after both render paths, set_window_drag_overlay() C→Python bridge in state.c, and the same child-monitor.c needs_render + set_maximum_wait hooks that visual_bell uses to keep frames firing during animation. Layout detection uses hasattr(layout, 'insert_window_next_to') — the same guard _insert_window_in_direction uses internally — so the overlay always matches the actual drop behavior.
…
…
…
…
…
…
…
= 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"]
Languages
Python
38.5%
C
28%
Go
26.4%
Objective-C
5.5%
Shell
1%
Other
0.5%