Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Weird alternate cursor behavior #20542

Open
1 task done
gro-david opened this issue Nov 12, 2024 · 7 comments
Open
1 task done

Linux: Weird alternate cursor behavior #20542

gro-david opened this issue Nov 12, 2024 · 7 comments
Labels
linux mouse Mouse interactions, states, actions, etc

Comments

@gro-david
Copy link

gro-david commented Nov 12, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

The mouse cursor behaves very weirdly in Zed. The cursor of the last window will get used no matter what happens. If for example you are typing in another window (your cursor then may disappear depending on your settings) and then switch to the Zed window Zed will just simply keep the cursor style even though you are not typing and trying to move the mouse instead. When trying to resize different panels Zed also does not change the cursor to the arrow style cursor and just keeps the one from before.

Uploading Screencast From 2024-11-12 15-59-05.mp4…

Environment

Zed: v0.160.2 (Zed Preview)
OS: Linux Wayland arch unknown
Memory: 14.9 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV GFX1103_R1) || radv || Mesa 24.2.6-arch1.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@gro-david gro-david added admin read bug [core label] labels Nov 12, 2024
@JosephTLyons JosephTLyons added workspace Feedback for workspace management, layout, interactions, etc editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Nov 15, 2024
@strowk
Copy link
Contributor

strowk commented Dec 11, 2024

I have noticed similar behavior using Ubuntu 24.04 with X11, so this is not Wayland specific. I also have a workaround for this. I have typically several screens. If I move zed window to another screen using shortcut, it would fix the issue and cursor would start behaving as expected. Another way of fixing it is to minimize zed window, then move cursor outside of it, and back. After that window can be maximized and issue does not return anymore.

@mrvladus
Copy link

mrvladus commented Dec 28, 2024

Same on Ubuntu 24.04 Wayland. But it only happens if I launch it from dock. If I run it from terminal or clicking binary in file manager it's woking as it should. I run it from podman container though.

@notpeter

This comment has been minimized.

@strowk
Copy link
Contributor

strowk commented Feb 24, 2025

I have just reproduced it on my machine. It is pretty easy:

  1. run zed
  2. run firefox
  3. focus anything in firefox
  4. Alt+tab back to zed.
  5. Try focusing on a line between two panes when cursor usually changes to two sided arrow
  6. notice how it does not change

Sometimes bug starts reproducing already after step 1

@notpeter , could you please reopen this.
Issue still persists for latest Zed.. ( seeing it on 0.174.6 ). Tell me if you need me to collect something additional to this.

There is a workaround:
7. Use Super+Shift+Arrow to move Zed window to another screen
8. Move it back
9. now cursor would behave ok again

@notpeter notpeter reopened this Feb 24, 2025
@notpeter notpeter changed the title Weird cursor behavior Linux: Weird alternate cursor behavior Feb 24, 2025
@notpeter notpeter added mouse Mouse interactions, states, actions, etc linux and removed bug [core label] workspace Feedback for workspace management, layout, interactions, etc editor Feedback for code editing, formatting, editor iterations, etc labels Feb 24, 2025
@notpeter
Copy link
Member

notpeter commented Feb 24, 2025

I was not able to reproduce on my machine under Wayland on KDE or Gnome. (Ubuntu 24 LTS).

@strowk Do you see the same behavior as @mrvladus where if you run $HOME/.local/zed.app/bin/zed the behavior is different (working) than when you launch it from the .desktop file (broken)?

@strowk
Copy link
Contributor

strowk commented Feb 24, 2025

I have just run $HOME/.local/zed.app/bin/zed, then firefox as usual using desktop and result is the same as before (when I run zed from desktop as well).
To be sure I have made this three times, broken every time, on occasion after step 1, but always after step 4.

Running firefox from terminal, results in same.

Workaround works too.

Also I have tried to disconnect additional screens (I typically work on HDMI connected screen, while my main laptop screen is not occupied with anything or just has Slack open).
The issue seems to happen still when using only one screen as well, checked twice.

Note: I use X11 though.

@arixsnow
Copy link

arixsnow commented Mar 5, 2025

Same weird bug happened for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux mouse Mouse interactions, states, actions, etc
Projects
None yet
Development

No branches or pull requests

6 participants