Commit graph

19029 commits

Author SHA1 Message Date
liguangsheng
153c93633f X11: fix scroll wheel being ignored when spurious crossing events occur
resetScrollValuators() runs on every LeaveNotify, clearing the initialized
flag of every scroll valuator. handle_xi_motion_event() then treats the next
XI_Motion event as a baseline sample and discards it.

On setups where the X server emits crossing events with mode NotifyGrab
faster than the wheel is turned, every scroll event lands in that branch and
is swallowed, so scrolling does not work at all. This is easy to hit inside a
VMware guest, where the same physical mouse is exposed as several pointer
devices: --debug-input shows a continuous leave/enter cycle and a single
Scroll event for the whole session.

Fix this in two places:

- Do not reset the baseline for crossing events generated by a grab being
  activated/released or by the pointer moving to a child window, since the
  pointer did not actually leave.

- Keep the baseline value across a reset so the next event can still compute
  a delta from it, and only discard the event when the jump is too large to
  be a genuine scroll.

Fixes #9846
2026-08-14 19:04:54 +08:00
Kovid Goyal
b71ef95ec7
Fix northern lights rendering on OS Window resize 2026-08-14 16:07:07 +05:30
Kovid Goyal
1b0c1d0a0c
Merge branch 'fix/builtin-kitten-guide' of https://github.com/M-Hassan-Raza/kitty 2026-08-14 15:48:15 +05:30
Hassan Raza
b172b487fd
Fix builtin kitten development guide 2026-08-14 12:25:02 +05:00
Kovid Goyal
d9610f5e1e
Bump version of Go 2026-08-14 08:10:55 +05:30
Kovid Goyal
f29665f601
Merge branch 'fix/bash-ssh-hostname-detection' of https://github.com/M-Hassan-Raza/kitty 2026-08-14 07:58:18 +05:30
Kovid Goyal
d65382d1a6
Merge branch 'fix-remap-keymap-reload' of https://github.com/bjohas/kitty 2026-08-14 07:56:19 +05:30
bjohas
bd0a39f495 Re-apply remap_modifiers to a reloaded xkb keymap state
On X11 glfw_xkb_compile_keymap() gets its state from
xkb_x11_state_new_from_device(), which seeds it with the server's physical
modifier mask. Every other path into that state goes through
glfw_xkb_update_modifiers(), where the permutation is applied, so after a
keymap reload the state held physical modifiers until the next XkbStateNotify
happened to arrive. Any key pressed in that window was encoded with the
modifier on the keycap: with ctrl held across a reload under
`remap_modifiers ctrl:super`, Ctrl+A reached the child as a literal 0x01.

Keymap reloads are routine - switching layout causes one, and so does any
client asking X for a keysym it must bind to a spare keycode.

Re-apply the permutation to the freshly loaded state, after
glfw_xkb_update_masks() has computed the modifier indices it is expressed in.
On Wayland the new state is empty, so this is a no-op there.
2026-08-13 10:20:20 +01:00
Hassan Raza
2a67ebf7e2
Wrap get-text protocol schema 2026-08-13 13:14:04 +05:00
Kovid Goyal
5be74884c8
... 2026-08-13 09:01:38 +05:30
Hassan Raza
bf18c2b8c1
Fix Bash SSH hostname detection 2026-08-13 07:55:42 +05:00
Kovid Goyal
48625a824d
Remove incremental linking test. setup is not available in all contexts where tests run and this functionality isnt important enough to warrant a test anyway 2026-08-13 08:14:28 +05:30
Kovid Goyal
3362c47fb2
Merge branch 'fix/get-text-protocol-extent' of https://github.com/M-Hassan-Raza/kitty 2026-08-13 08:11:38 +05:30
Hassan Raza
ec2724ab5f
Document last non-empty get-text extent 2026-08-13 07:30:08 +05:00
Kovid Goyal
e94fc0f6e7
Merge branch 'fix/bash-command-hook' of https://github.com/M-Hassan-Raza/kitty 2026-08-13 01:41:12 +05:30
Kovid Goyal
b99ee09d13
Bump version of python for CVEs 2026-08-12 20:50:07 +05:30
Hassan Raza
9bbb900e6a
Skip disabled Bash command hook 2026-08-12 20:02:47 +05:00
Kovid Goyal
cea9aeb803
Wayland: Fix clipboard sharing between kitty instances in containers with isolated PID namespaces
Dont rely on PID alone for the self transfer sentinel.

Fixes #10352
2026-08-12 20:28:49 +05:30
Kovid Goyal
0c932d0b35
Merge branch 'fix/session-file-completion' of https://github.com/M-Hassan-Raza/kitty 2026-08-12 20:12:38 +05:30
Hassan Raza
baa9a2ecba
Complete session file completion 2026-08-12 19:15:52 +05:00
Kovid Goyal
29d8b45594
Query go itself for its cache directories
Fixes test suite causing a full rebuild on every run on macOS
2026-08-12 19:06:45 +05:30
Kovid Goyal
46460cbb29
Merge branch 'fix/relink-command-changes' of https://github.com/M-Hassan-Raza/kitty 2026-08-12 18:41:42 +05:30
Kovid Goyal
dcbffe3fe0
Cleanup all_fonts_map() invocation to be once per worker process only and not in master process when using execed test workers 2026-08-12 17:39:03 +05:30
Hassan Raza
111cd86f61
Relink when linker commands change 2026-08-12 16:21:24 +05:00
Kovid Goyal
00a5ca54ef
Cleanup test worker launch code 2026-08-12 16:01:31 +05:30
Kovid Goyal
185de897b4
Run tests in execed workers rather than forked workers on macOS to ensure there are no issues form CoreFoundation libraries not liking fork + threads
Fixes #10349
2026-08-12 15:53:22 +05:30
Kovid Goyal
896fc0c36a
Improve benchmark script
It now benchmarks the I/O thread as well for results much closer to what
you get when running in real kitty
2026-08-12 15:37:22 +05:30
Kovid Goyal
f047fc82d5
Report python test worker failures separately from test failures 2026-08-12 15:29:40 +05:30
Kovid Goyal
485a12aa12
Report python subtest failures when running test suite 2026-08-12 15:25:32 +05:30
Kovid Goyal
cc51e89f22
Make ty happy 2026-08-12 15:07:11 +05:30
Kovid Goyal
3f296b3213
Merge branch 'fix/choose-files-shell-output' of https://github.com/M-Hassan-Raza/kitty 2026-08-12 14:52:11 +05:30
Kovid Goyal
7caf73ba1b
Fix custom shader scaling when OS Window size changes 2026-08-12 14:31:24 +05:30
Hassan Raza
81791a090f
Quote choose-files shell output safely 2026-08-12 13:10:53 +05:00
Kovid Goyal
3e48e0dfe2
Get count-lines-of-code to also count .slang files (as HLSL) 2026-08-12 10:30:35 +05:30
Kovid Goyal
27d68d32e6
... 2026-08-12 10:22:21 +05:30
Kovid Goyal
5fc4189cfd
Autodetect bundled slangc when from from a dev.sh build 2026-08-12 10:12:47 +05:30
Kovid Goyal
2caa3ca16b
... 2026-08-11 19:55:53 +05:30
Kovid Goyal
987a8f1d4b
Update changelog 2026-08-11 19:46:18 +05:30
Kovid Goyal
2c016b3cf5
autoformat 2026-08-11 19:41:41 +05:30
Kovid Goyal
11fa8ae1b2
Merge branch 'master' of https://github.com/pakhromov/kitty 2026-08-11 19:41:28 +05:30
Kovid Goyal
58828dd893
Simplify remap_modifier making it a single option 2026-08-11 18:32:21 +05:30
Kovid Goyal
f5fba5e584
Prevent clang-format from zeroing files 2026-08-11 16:57:43 +05:30
Kovid Goyal
36872d91bb
autoformat 2026-08-11 16:49:43 +05:30
Pavel
64663fee62 scrollbar: add scrolled-or-hovered option 2026-08-11 13:17:33 +02:00
Kovid Goyal
a18847bcc5
Merge PR #10307: Add remap_modifier option
Adds remap_modifier config option to present one modifier key to kitty
as another, as discussed in issue #1077.
2026-08-11 16:43:04 +05:30
Kovid Goyal
50c683e1a7
Merge PR #10307: Add remap_modifier option
Adds remap_modifier config option to present one modifier key to kitty
as another, as discussed in issue #1077. Resolves merge conflicts by
adopting master's formatting style (multi-line macros, pointer spacing)
while preserving all new PR functionality.

Co-Authored-By: Bjoern <bjohas@users.noreply.github.com>
2026-08-11 16:42:53 +05:30
Kovid Goyal
5734bb5a58
... 2026-08-11 14:19:09 +05:30
Kovid Goyal
5bb1a19465
Exclude shaders from rsync 2026-08-11 14:03:37 +05:30
Kovid Goyal
1a8b11381b
Bump version of slangc 2026-08-11 11:04:13 +05:30
Kovid Goyal
9aa73ccaa5
Dont output line mapping when compiling custom shaders to glsl 2026-08-11 10:39:59 +05:30