-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Describe the bug
On wayland, the kitty panel kitten does not report the new mouse position after regaining focus if focus was lost for at least mouse_hide_wait seconds.
To Reproduce
Steps to reproduce the behavior:
- Run
kitty +kitten panel --edge=background --override=mouse_hide_wait=.1 kitten mouse-demo - Switch to an empty workspace
- Move mouse to a location and remember the coordinates reported by the mouse-demo kitten
- Switch focus to a surface on a different workspace
- Make sure mouse is in a different location than where it was in step 2
- Wait at least .1 seconds
- Switch focus back to the workspace from step 2
- The coordinates are incorrect until the mouse is manually moved
If you follow those same steps but with mouse hiding disabled, kitty correctly reports the new coordinates as expected.
kitty +kitten panel --edge=background --override=mouse_hide_wait=0 kitten mouse-demo
Environment details
kitty 0.39.1 (0339d59851) created by Kovid Goyal
Linux desk 6.13.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 27 Feb 2025 18:09:44 +0000 x86_64
S{PRETTY_NAME} 6.13.5-arch1-1 (/dev/tty)
DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland (sway version 1.10-dev-08e036ca (Dec 1 2024, branch 'tabbed-stacked-layout-gaps')) missing: window-state-suspended
OpenGL: '4.6 (Core Profile) Mesa 24.3.4-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
medium: VictorMono-Regular: /home/alex/.local/share/fonts/VictorMono/WOFF2/VictorMono-Regular.woff2:0
Features: ()
bold: VictorMono-Bold: /home/alex/.local/share/fonts/VictorMono/WOFF2/VictorMono-Bold.woff2:0
Features: ()
italic: VictorMono-Regular: /home/alex/.local/share/fonts/VictorMono/WOFF2/VictorMono-Regular.woff2:0
Features: ()
bi: VictorMono-Bold: /home/alex/.local/share/fonts/VictorMono/WOFF2/VictorMono-Bold.woff2:0
Features: ()
Paths:
kitty: /home/alex/dev/kitty/kitty/launcher/kitty
base dir: /home/alex/dev/kitty
extensions dir: /home/alex/dev/kitty/kitty
system shell: /bin/zsh
System color scheme: dark. Applied color theme type: none
Loaded config files:
/home/alex/.config/kitty/kitty.conf
Config options different from defaults:
allow_remote_control password
bold_font family='Victor Mono' style=Bold
bold_italic_font family='Victor Mono' style=Bold
confirm_os_window_close 0
cursor_stop_blinking_after 0
disable_ligatures 2
font_family family='Victor Mono' style=Regular
font_size 16.0
italic_font family='Victor Mono' style=Regular
listen_on unix:$XDG_RUNTIME_DIR/kitty
paste_actions frozenset({'confirm-if-large'})
placement_strategy top-left
remote_control_password:
{'REDACTED': ('*',)}
shell_integration frozenset({'no-cursor'})
text_composition_strategy legacy
watcher:
{'watcher.py': 'watcher.py'}
window_padding_width FloatEdges(left=6.0, top=6.0, right=6.0, bottom=6.0)
Added shortcuts:
kitty_mod+d → new_os_window_with_cwd
Changed shortcuts:
kitty_mod+a > m → show_scrollback, set_background_opacity default, set_background_opacity 1, set_background_opacity -0.1, set_background_opacity +0.1
kitty_mod+h → no-op
kitty_mod+l → no-op
kitty_mod+w → no-op
Colors:
color0 #3c3836
color1 #cc241d
color10 #b8bb26
color11 #fabd2f
color12 #83a598
color13 #d3869b
color14 #8ec07c
color15 #fbf1c7
color2 #98971a
color3 #d79921
color4 #458588
color5 #b16286
color6 #689d6a
color7 #a89984
color8 #928374
color9 #fb4934
cursor #bdae93
cursor_text_color #665c54
foreground #ebdbb2
selection_background #d65d0e
selection_foreground #ebdbb2
url_color #458588
Important environment variables seen by the kitty process:
PATH /home/alex/.pyenv/shims:/home/alex/.pyenv/bin:/home/alex/.local/share/JetBrains/Toolbox/scripts:/home/alex/.local/bin:/home/alex/.cargo/bin:/home/alex/go/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/var/lib/snapd/snap/bin
LANG en_US.UTF-8
EDITOR nvim
SHELL /bin/zsh
DISPLAY :0
WAYLAND_DISPLAY wayland-1
USER alex
XCURSOR_SIZE 24
XDG_SEAT seat0
XDG_SESSION_TYPE wayland
XDG_CURRENT_DESKTOP sway
XDG_SESSION_CLASS user
XDG_VTNR 1
XDG_SESSION_ID 1
XDG_RUNTIME_DIR /run/user/1000
XDG_DATA_DIRS /home/alex/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
Additional context
This was tested on sway.
Reactions are currently unavailable