Commit Graph

17154 Commits

Author SHA1 Message Date
Antoine Cellerier
ef4574ae97 Support hide_window_decorations titlebar-only on Wayland
Hide the CSD titlebar subsurface while keeping shadow borders for
resizing. On SSD compositors (GNOME), forces CSD mode to draw
kitty's own shadows without a titlebar.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-08 19:49:44 +01:00
Kovid Goyal
abb1141826 Handle on_drop being called with a POSIX errno 2026-02-08 22:10:03 +05:30
Kovid Goyal
ff70e2e3ab Dont hardcode mimetype to extension mappings 2026-02-08 22:05:15 +05:30
Kovid Goyal
08217c949d Fix crash on self drop 2026-02-08 22:05:15 +05:30
Kovid Goyal
625e3b5d1c Notes for X11 backend refactor 2026-02-08 22:05:14 +05:30
Kovid Goyal
a80d742449 Port cocoa backend drop code to the new API 2026-02-08 22:05:14 +05:30
Kovid Goyal
af4f3969b7 remove watch after all data is received on pipe 2026-02-08 22:05:14 +05:30
Kovid Goyal
5db41c7ba4 Remove remaining code for the old drop API
X11 and cocoa need to be ported to the new API
2026-02-08 22:05:14 +05:30
Kovid Goyal
f3cda7e828 Have mimes_count be always accurate 2026-02-08 22:05:14 +05:30
Kovid Goyal
c19ec465cb ... 2026-02-08 22:05:14 +05:30
Kovid Goyal
3cf24afdc0 Refactor drop API and implement it on Wayland 2026-02-08 22:05:14 +05:30
Kovid Goyal
0ea65903b8 Revert "Increase minimum python version to 3.12"
This reverts commit 7004911271.
Dont need 3.12 anymore
2026-02-08 21:57:11 +05:30
Kovid Goyal
f3d7830352 Fix async repose rc commands not decrementing peer unhandled message counter
This was causing peers to not be pruned leading to eventual starvation.
Fixes #9487
2026-02-08 21:25:37 +05:30
Kovid Goyal
386a6f14f0 Add bookorat to integrations 2026-02-08 15:36:15 +05:30
Kovid Goyal
1103aaf1a5 Cleanup previous PR
Testing is_local_file is insufficient since it can be false for local
files that dont have r/w permissions. Instead check if the child is
remote when the EditCmd is created and only use disconnected abort
if child was remote at creation but is not remote currently.
2026-02-08 07:57:15 +05:30
Kovid Goyal
d02f30ca31 Merge branch 'detect-ssh-drop' of https://github.com/waresnew/kitty 2026-02-08 07:45:36 +05:30
newwares
828bd56fa5 ssh kitten: Push and pop keyboard encoding flags 2026-02-07 20:26:28 -05:00
newwares
60e2d61eb4 edit-in-kitty: Warn if SSH connection has dropped when attempting to update remote file 2026-02-07 20:26:28 -05:00
Kovid Goyal
9aab18d724 DRYer 2026-02-07 23:11:42 +05:30
Kovid Goyal
0d465f71a3 More work on cocoa darg drop still not functional
I think I am going to rewrite the API to integrate with the event loop,
now that I have a good handle on the semantics of DnD in the two major
platforms.
2026-02-07 23:00:23 +05:30
Kovid Goyal
19f24f2623 Get drag and drop to self working in cocoa backend 2026-02-07 16:42:56 +05:30
Kovid Goyal
e186965bda ... 2026-02-07 15:12:54 +05:30
copilot-swe-agent[bot]
7ca6fd66f8 Fix self drag not working under Wayland
Fixes #9483
2026-02-07 15:10:54 +05:30
Kovid Goyal
3839dcc082 Bump dependency for CVE 2026-02-07 14:41:17 +05:30
Kovid Goyal
07a9f2bcaa API to start a drag 2026-02-07 13:50:16 +05:30
copilot-swe-agent[bot]
5ea35cbbfc Refactor drag API to make it asynchronous
Fixes #9477
2026-02-07 08:59:34 +05:30
Kovid Goyal
a7b8e880c9 Merge branch 'patch-1' of https://github.com/rmaclean/kitty 2026-02-06 13:34:17 +05:30
Robert MacLean
35ec8b81ac Add Warp terminal to keyboard protocol documentation 2026-02-06 08:22:15 +02:00
Kovid Goyal
a2a5464cbe Bump go version for CVE 2026-02-06 09:57:00 +05:30
Kovid Goyal
d02cd59e38 Add far2l to integrations
Fix #9478
2026-02-06 09:31:24 +05:30
Kovid Goyal
0afe77ebc9 Ignore irrelevant CVE 2026-02-05 23:01:58 +05:30
Kovid Goyal
b66f8e9ed8 ... 2026-02-05 20:20:18 +05:30
Kovid Goyal
856e5680b4 DRYer 2026-02-04 21:29:28 +05:30
Kovid Goyal
740abf59a1 ... 2026-02-04 21:28:07 +05:30
Kovid Goyal
d51dec8187 When dropping, paste into window under mouse cursor rather than active window 2026-02-04 21:21:25 +05:30
Kovid Goyal
7004911271 Increase minimum python version to 3.12
Needed for PyErr_GetRaisedException

I could polyfill it, but cant be bothered. Python 3.12 is almost 3 years
old now. If somebody really, really needs older python support, PR
welcome.
2026-02-04 20:47:28 +05:30
Kovid Goyal
9a2ddc887b Cleanup new chunked drop code and use it in kitty
Currently the chunking is useful but it will become useful for a future
drag and drop TUI protocol
2026-02-04 20:34:10 +05:30
copilot-swe-agent[bot]
ed5eb8f45c Allow reading dropped data in chunks
Fixes #9470
2026-02-04 14:18:28 +05:30
Kovid Goyal
0ab7aec690 DRYer 2026-02-03 22:49:40 +05:30
Kovid Goyal
b2c3fd1893 Also retry building linux arm nightly 2026-02-03 22:36:37 +05:30
copilot-swe-agent[bot]
fac4420804 Simplify new drag/drop API
Fixes #9466
2026-02-03 22:02:51 +05:30
Kovid Goyal
c0bb8ae2a0 desktop-ui kitten: Re-read config on every file chooser invocation via portal
Allows easily changing the config without needing to restart the kitten
which is difficult to do given its lifetime is managed by the xdg
portals service.
2026-02-03 21:08:55 +05:30
Kovid Goyal
0267a02bb3 Ignore irrelevant python stdlib CVE 2026-02-03 14:48:30 +05:30
copilot-swe-agent[bot]
9b35c1b535 Allow changing drag acceptance asynchronously
Fixes #9465
2026-02-03 14:43:44 +05:30
copilot-swe-agent[bot]
6744183027 Accept drags based on mime types in drag event callback
Fixes #9456
2026-02-02 21:30:25 +05:30
copilot-swe-agent[bot]
fa6c76d3e3 Add a GLFW API to support starting drag operations
Fixes #9454
Fixes #9455
2026-02-02 20:49:00 +05:30
dependabot[bot]
a9e4f962a1 Bump the all-go-deps group with 3 updates
Bumps the all-go-deps group with 3 updates: [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma), [github.com/bmatcuk/doublestar/v4](https://github.com/bmatcuk/doublestar) and [github.com/zeebo/xxh3](https://github.com/zeebo/xxh3).


Updates `github.com/alecthomas/chroma/v2` from 2.23.0 to 2.23.1
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Commits](https://github.com/alecthomas/chroma/compare/v2.23.0...v2.23.1)

Updates `github.com/bmatcuk/doublestar/v4` from 4.9.2 to 4.10.0
- [Release notes](https://github.com/bmatcuk/doublestar/releases)
- [Commits](https://github.com/bmatcuk/doublestar/compare/v4.9.2...v4.10.0)

Updates `github.com/zeebo/xxh3` from 1.0.2 to 1.1.0
- [Commits](https://github.com/zeebo/xxh3/compare/v1.0.2...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  dependency-version: 2.23.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: github.com/bmatcuk/doublestar/v4
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
- dependency-name: github.com/zeebo/xxh3
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 03:43:47 +00:00
Kovid Goyal
c441434034 Fix #9449 2026-02-01 09:45:09 +05:30
Kovid Goyal
058b36788f Merge branch 'sprite-memory-leak' of https://github.com/dmgerman/kitty 2026-02-01 08:16:45 +05:30
Daniel M German
6b44d8520e Fix GPU texture leak in free_sprite_data()
The decorations_map texture was never freed due to a typo - the code
checked decorations_map.texture_id but then freed sprite_map.texture_id
(which was already freed on the previous line).

This leaked ~1-4 MB of GPU memory each time a font group was deleted,
which occurs when changing font size or reloading font configuration.
2026-01-31 16:05:49 -08:00