zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.58k stars 3.04k forks source link

Wrong mouse cursor under Awesome WM #18025

Open iondodon opened 1 month ago

iondodon commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Arrow cursor instead of Text Selection cursor when hovering over text.

Works correctly under Gnome, but displays the incorrect cursor under AwesomeVM window manager.

bug

Environment

Zed: v0.152.4 (Zed) OS: Linux X11 ubuntu 22.04 Memory: 31 GiB Architecture: x86_64 GPU: Intel(R) Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.2

OS: Ubuntu 22.04.5 LTS x86_64 Host: Latitude 5531 Kernel: 6.8.0-40-generic Uptime: 16 mins Packages: 2489 (dpkg), 6 (flatpak), 15 (snap) Shell: bash 5.1.16 Resolution: 1920x1080 WM: awesome Theme: Yaru-dark [GTK3] Terminal: node CPU: 12th Gen Intel i7-12800H (20) @ 4.700GHz GPU: Intel Alder Lake-P Memory: 6140MiB / 31779MiB

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

2024-09-18T21:06:45.164089436+03:00 [INFO] ========== starting zed ==========
2024-09-18T21:06:45.189872499+03:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-09-18T21:06:45.189958024+03:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: false
2024-09-18T21:06:45.197723422+03:00 [INFO] Try connect ibus
2024-09-18T21:06:45.201880556+03:00 [INFO] perform;
2024-09-18T21:06:45.201931026+03:00 [INFO] authenticate;
2024-09-18T21:06:45.202152154+03:00 [INFO] read_command;
2024-09-18T21:06:45.204557044+03:00 [INFO] new;
2024-09-18T21:06:45.20464475+03:00 [INFO] socket reader;
2024-09-18T21:06:45.206654592+03:00 [INFO] keep_updated;
2024-09-18T21:06:45.210049779+03:00 [INFO] Opening main db
2024-09-18T21:06:45.223898708+03:00 [INFO] Using git binary path: None
2024-09-18T21:06:45.271780784+03:00 [ERROR] No such file or directory (os error 2) about ["/home/ion/.config/github-copilot"]
2024-09-18T21:06:45.277805814+03:00 [INFO] initializing context server client
2024-09-18T21:06:45.278435379+03:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-18T21:06:45.279177755+03:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-18T21:06:45.279337207+03:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-18T21:06:45.279608005+03:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-18T21:06:45.279989345+03:00 [INFO] No prompt template overrides directory found at /home/ion/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-09-18T21:06:45.287541899+03:00 [INFO] extensions updated. loading 16, reloading 0, unloading 0
2024-09-18T21:06:45.299485595+03:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-09-18T21:06:45.313292217+03:00 [INFO] Opening main db
2024-09-18T21:06:45.314052871+03:00 [INFO] perform;
2024-09-18T21:06:45.31407729+03:00 [INFO] authenticate;
2024-09-18T21:06:45.314110846+03:00 [INFO] read_command;
2024-09-18T21:06:45.315087531+03:00 [INFO] socket reader;
2024-09-18T21:06:45.318439149+03:00 [WARN] Theme "Dracula" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-09-18T21:06:45.318454853+03:00 [INFO] Using Visual { id: 129, colormap: 0, depth: 32 }
2024-09-18T21:06:45.318476501+03:00 [INFO] Creating colormap 90177539
2024-09-18T21:06:45.319693058+03:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-09-18T21:06:45.321428474+03:00 [WARN] Theme "One Dark Pro" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-09-18T21:06:45.323212205+03:00 [INFO] new;
2024-09-18T21:06:45.324068189+03:00 [INFO] keep_updated;
2024-09-18T21:06:45.339751077+03:00 [INFO] Enabling color space support
2024-09-18T21:06:45.346805982+03:00 [INFO] Adapter: "Intel(R) Graphics (ADL GT2)"
2024-09-18T21:06:45.347460843+03:00 [INFO] No ray tracing extensions are supported
2024-09-18T21:06:45.35086989+03:00 [INFO] Using surface present mode MAILBOX
2024-09-18T21:06:45.350902947+03:00 [WARN] Unable to forbid exclusive full screen
2024-09-18T21:06:45.352329175+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-18T21:06:45.352449411+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-18T21:06:45.352574946+03:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-09-18T21:06:45.38613145+03:00 [INFO] Refreshing at 16651 micros
2024-09-18T21:06:45.386183583+03:00 [INFO] x11: no compositor present, falling back to server-side window decorations
2024-09-18T21:06:45.396583827+03:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) Graphics (ADL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.2" }
2024-09-18T21:06:45.417058138+03:00 [INFO] XConnected server on 8388617, transport version: 0.0, TRANSPORT_MAX: 20
2024-09-18T21:06:45.421347183+03:00 [INFO] set status on client 0: Authenticating
2024-09-18T21:06:45.422300104+03:00 [INFO] Opening main db
2024-09-18T21:06:45.422437092+03:00 [INFO] perform;
2024-09-18T21:06:45.422466401+03:00 [INFO] authenticate;
2024-09-18T21:06:45.422504989+03:00 [INFO] read_command;
2024-09-18T21:06:45.423428703+03:00 [INFO] socket reader;
2024-09-18T21:06:45.427866541+03:00 [INFO] Opening main db
2024-09-18T21:06:45.42963845+03:00 [INFO] new;
2024-09-18T21:06:45.430753054+03:00 [INFO] keep_updated;
2024-09-18T21:06:45.432194315+03:00 [INFO] set status on client 209490: Connecting
2024-09-18T21:06:45.459782877+03:00 [INFO] starting language servers for Go: gopls
2024-09-18T21:06:45.459826658+03:00 [INFO] starting language server "gopls", path: "/home/ion/multiplexer", id: 1
2024-09-18T21:06:45.460234448+03:00 [INFO] Initializing default prettier with plugins {}
2024-09-18T21:06:45.460306131+03:00 [INFO] starting language servers for Go: gopls
2024-09-18T21:06:45.460632104+03:00 [INFO] Initializing default prettier with plugins {}
2024-09-18T21:06:45.490338041+03:00 [INFO] set environment variables from shell:/bin/bash, path:/home/ion/.local/bin:/home/ion/.local/bin:/home/ion/.sdkman/candidates/java/current/bin:/home/ion/.nvm/versions/node/v18.19.0/bin:/home/ion/.sdkman/candidates/maven/3.9.8/bin:/home/ion/.cargo/bin:/home/ion/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/ion/.local/share/JetBrains/Toolbox/scripts:/home/ion/.fzf/bin:/home/ion/gnome-terminal-session:/usr/local/go/bin:/home/ion/zig-linux-x86_64-0.13.0:/home/ion/.local/share/JetBrains/Toolbox/scripts
2024-09-18T21:06:45.670696991+03:00 [INFO] fetching latest version of language server "gopls"
2024-09-18T21:06:45.812039702+03:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-09-18T21:06:46.348479206+03:00 [INFO] add connection to peer
2024-09-18T21:06:46.348496034+03:00 [INFO] add_connection;
2024-09-18T21:06:46.348509012+03:00 [INFO] waiting for server hello
2024-09-18T21:06:46.359032245+03:00 [INFO] got server hello
2024-09-18T21:06:46.359053541+03:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 11259687 })
2024-09-18T21:06:46.359068903+03:00 [INFO] set status on client 209490: Connected { peer_id: PeerId { owner_id: 540, id: 11259687 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-09-18T21:06:46.654800532+03:00 [INFO] Initializing default prettier with plugins {}
2024-09-18T21:06:46.654833361+03:00 [INFO] starting language servers for Go: gopls
2024-09-18T21:06:46.783759109+03:00 [INFO] downloading language server "gopls"
2024-09-18T21:06:46.789082889+03:00 [INFO] starting language server. binary path: "/home/ion/.local/share/zed/languages/gopls/gopls_0.16.2", working directory: "/home/ion/multiplexer", args: ["-mode=stdio"]
2024-09-18T21:06:47.050609283+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-09-18T21:06:50.343557213+03:00 [WARN] Unknown request DestroyIcReply { input_method_id: 2, input_context_id: 3 }

notpeter commented 1 month ago

Can you provide your Zed version (ctrl-shift-p then zed: copy system specs to clipboard)?

iondodon commented 1 month ago

Can you provide your Zed version (ctrl-shift-p then zed: copy system specs to clipboard)?

Yes, sure

Zed: v0.152.4 (Zed) OS: Linux X11 ubuntu 22.04 Memory: 31 GiB Architecture: x86_64 GPU: Intel(R) Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.2

dbarnett commented 1 month ago

@iondodon is it always the same wrong cursor? For me it's been getting stuck with all different cursors. Here it is with the "vert resize" cursor in the editor pane (or wherever else I move the mouse): image

iondodon commented 1 month ago

@dbarnett In my case it is always the arrow, regardless where I move it.

dbarnett commented 1 month ago

Ah okay, at any rate I will follow along on your issue because I suspect a fix for yours will take care of mine. =)