Skip to content

(Wayland) Key repeat doesn't work when switching keys #2191

Description

@autolyticus

Hi

I've looked at both #120 and #292 and the problem is similar but not quite like these ones.

This isn't specific to any particular key.

Let's say I press j (or any other key) for a while (say 3 seconds), the keys begin repeating

jjjjjjjjjjjj

Now when I switch to another key, say k

jjjjjjjjjjjjk

It stops at a single k however long I press the key.

If I run kitty with env WAYLAND_DISPLAY= kitty (under XWayland) then the problem disappears and I get

jjjjjjjjjjjjkkkkkkkkkkkk

as expected.

I'm using kitty under Wayland through glfw-wayland (SwayWM if that is relevant)
Output of kitty --debug-config

kitty 0.15.0 created by Kovid Goyal
Linux archlinux 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64
Arch Linux \r (\l)
Loaded config files: /home/g/.config/kitty/kitty.conf
Running under: Wayland

Config options different from defaults:
background            Color(red=29, green=32, blue=33)
bell_on_tab           False
color0                Color(red=29, green=32, blue=33)
color1                Color(red=251, green=73, blue=52)
color10               Color(red=184, green=187, blue=38)
color11               Color(red=250, green=189, blue=47)
color12               Color(red=131, green=165, blue=152)
color13               Color(red=211, green=134, blue=155)
color14               Color(red=142, green=192, blue=124)
color15               Color(red=251, green=241, blue=199)
color16               Color(red=254, green=128, blue=25)
color17               Color(red=214, green=93, blue=14)
color18               Color(red=60, green=56, blue=54)
color19               Color(red=80, green=73, blue=69)
color2                Color(red=184, green=187, blue=38)
color20               Color(red=189, green=174, blue=147)
color21               Color(red=235, green=219, blue=178)
color3                Color(red=250, green=189, blue=47)
color4                Color(red=131, green=165, blue=152)
color5                Color(red=211, green=134, blue=155)
color6                Color(red=142, green=192, blue=124)
color7                Color(red=213, green=196, blue=161)
color8                Color(red=102, green=92, blue=84)
color9                Color(red=251, green=73, blue=52)
cursor                Color(red=235, green=219, blue=178)
cursor_blink_interval 0.5
enable_audio_bell     False
font_family           PragmataProMonoLiga-Regular
font_size             14.0
foreground            Color(red=213, green=196, blue=161)
macos_option_as_alt   3
scrollback_lines      10000
scrollback_pager      ['bat', '-p']
Changed shortcuts:
	 shift+control+t KeyAction(func='new_os_window_with_cwd', args=())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions