kovidgoyal/kitty

Mouse cursor disappeared when running some context-menu apps like rofi on X11

nonotran68 opened this issue · 1 comments

Describe the bug

Hi, I would like to report a bug related to kitty when working with certain context-menu apps like rofi, jgmenu, and x11menu on X11 display server. When running these apps alongside kitty, the mouse cursor disappears within the kitty window, while it remains visible in other windows.

To Reproduce
Steps to reproduce the behavior:

  1. Start kitty with kitty -c NONE
  2. Launch rofi or jgmenu and move the mouse cursor

Screenshots

simplescreenrecorder-2024-12-12_06.32.39.mp4
simplescreenrecorder-2024-12-12_07.08.24.mp4

Environment details

kitty 0.37.0 created by Kovid Goyal
Linux tsunami 6.12.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 16:04:27 +0000 x86_64
S{PRETTY_NAME} 6.12.1-arch1-1 (/dev/tty)

Running under: X11
OpenGL: '4.6 (Core Profile) Mesa 24.3.1-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
  medium: NotoSansMono-Regular: /usr/share/fonts/noto/NotoSansMono-Regular.ttf:0
          Features: ()
    bold: NotoSansMono-Bold: /usr/share/fonts/noto/NotoSansMono-Bold.ttf:0
          Features: ()
  italic: NotoSansMono-Regular: /usr/share/fonts/noto/NotoSansMono-Regular.ttf:0
          Features: ()
      bi: NotoSansMono-Bold: /usr/share/fonts/noto/NotoSansMono-Bold.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/zsh

Config options different from defaults:

Important environment variables seen by the kitty process:
	PATH                                /home/datpc/perl5/bin:/home/datpc/.pyenv/shims:/home/datpc/.pyenv/bin:/run/user/1000/fnm_multishells/66463_1733961852771/bin:/run/user/1000/fnm_multishells/66460_1733961852738/bin:/home/datpc/.local/share/fnm:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/go/bin:/home/datpc/.local/bin:/usr/local/go/bin
	LANG                                en_US.UTF-8
	SHELL                               /bin/zsh
	GLFW_IM_MODULE                      ibus
	DISPLAY                             :0
	USER                                datpc
	XDG_SEAT                            seat0
	XDG_SESSION_DESKTOP                 bspwm
	XDG_SESSION_TYPE                    x11
	XDG_CURRENT_DESKTOP                 
	XDG_SESSION_CLASS                   user
	XDG_VTNR                            2
	XDG_SESSION_ID                      1
	XDG_RUNTIME_DIR                     /run/user/1000

Thank for your attention to this issue, and I'm happy to provide more details if needed.

What is happening is that kitty is auto hiding the mouse cursor. When you move the mouse over kitty with focus on another window it doesnt receive mouse events so it wont auto show the cursor again. Either configure your window manager to have focus follows mouse behavior or turn off mouse auto hiding in kitty.conf.