kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
22.15k stars 908 forks source link

When moving mouse over inactive Kitty windows, text is selected as if the mouse button is pressed #7381

Closed juztin closed 3 weeks ago

juztin commented 3 weeks ago

While having multiple Kitty sessions/windows open (some with single sessions, some with multiple tabs—doesn't seem to matter) when moving the mouse across the screen, over inactive Kitty windows, it begins to select all text in relation to the mouse (as if I've pressed the mouse button down). The window remains inactive, but text is selected. I have to click/activate the windows to stop it _(depending on where/how the mouse is moving, it will sometimes scroll select until the mouse is moved completely out, or the window is activated and clicked to unselect.

Steps to reproduce the behavior:

  1. Open multiple Kitty windows
  2. Open multiple tabs within the Kitty window(s) (sometimes this triggers it, sometimes not)
  3. Perform an ls, or anything that display text within the sessions
  4. Move mouse over all Kitty windows, some will randomly begin selecting text within the session as the mouse is moved over the inactive window

Screenshots If applicable, add screenshots to help explain your problem.

Environment details

kitty 0.33.1 created by Kovid Goyal
Linux x 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64
EndeavourOS Linux 6.8.7-arch1-1 (/dev/tty)

DISTRIB_ID="EndeavourOS"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="EndeavourOS Linux"
DISTRIB_CODENAME="rolling"
Running under: Wayland
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/x/.config/kitty/kitty.conf

Config options different from defaults:
Changed shortcuts:
    kitty_mod+t →  launch --cwd=current --type=tab
Colors:
    background           #001e26   
    color0               #002731   
    color1               #d01b24   
    color10              #465a61   
    color11              #52676f   
    color12              #708183   
    color13              #5856b9   
    color14              #81908f   
    color15              #fcf4dc   
    color2               #728905   
    color3               #a57705   
    color4               #2075c7   
    color5               #c61b6e   
    color6               #259185   
    color7               #e9e2cb   
    color8               #465a61   
    color9               #bd3612   
    cursor               #708183   
    foreground           #708183   
    selection_background #9aeaca   
    selection_foreground #001e26   

Important environment variables seen by the kitty process:
    PATH                                /home/x/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG                                en_US.UTF-8
    EDITOR                              nano
    SHELL                               /usr/bin/zsh
    DISPLAY                             :1
    WAYLAND_DISPLAY                     wayland-0
    USER                                x
    LC_ADDRESS                          en_US.UTF-8
    LC_IDENTIFICATION                   en_US.UTF-8
    LC_MEASUREMENT                      en_US.UTF-8
    LC_MONETARY                         en_US.UTF-8
    LC_NAME                             en_US.UTF-8
    LC_NUMERIC                          en_US.UTF-8
    LC_PAPER                            en_US.UTF-8
    LC_TELEPHONE                        en_US.UTF-8
    LC_TIME                             en_US.UTF-8
    XDG_CONFIG_DIRS                     /home/x/.config/kdedefaults:/etc/xdg
    XDG_CURRENT_DESKTOP                 KDE
    XDG_MENU_PREFIX                     plasma-
    XDG_RUNTIME_DIR                     /run/user/2222
    XDG_SEAT                            seat0
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_SESSION_DESKTOP                 KDE
    XDG_SESSION_ID                      2
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session1
    XDG_SESSION_TYPE                    wayland
    XDG_VTNR                            1
d
kovidgoyal commented 3 weeks ago

Does not reproduce for me with those steps using current kitty version 0.34.1. Since you are using wayland and there were lots of improvements to wayland support I suggest updating kitty.