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

set_cursor_icon does not work #5804

Open
antoniocorbi opened this issue Mar 14, 2025 · 4 comments
Open

set_cursor_icon does not work #5804

antoniocorbi opened this issue Mar 14, 2025 · 4 comments
Labels
bug Something is broken

Comments

@antoniocorbi
Copy link

Describe the bug
I simply want to change the mouse cursor whenever it is on my window. For that I make a call like this in my update function: ctx.set_cursor_icon(egui::CursorIcon::Crosshair); but the mouse shape does not change.

To Reproduce
Call set_cursor_icon as docs say.

Expected behavior
The mouse cursor changes to the one selected

Desktop (please complete the following information):

  • OS: NixOS 24.11, gnome-47 + Wayland
  • Version: egui/eframe 0.31.1
@antoniocorbi antoniocorbi added the bug Something is broken label Mar 14, 2025
@antoniocorbi
Copy link
Author

antoniocorbi commented Mar 14, 2025

Update:

Hi, I just wanted to add that I've tried my app that uses set_cursor_icon under sway and the mouse cursor changes as expected.

@BladeTransformerLLC
Copy link

Same issue. I'm using egui in a web app (WebAssembly) running in browsers.

@lucasmerlin
Copy link
Collaborator

Does the cursor test on egui.rs and when running the demo app locally work correctly for you?

For me on macos it works correctly (both locally and in the browser)

@antoniocorbi
Copy link
Author

Does the cursor test on egui.rs and when running the demo app locally work correctly for you?

My only problem with this is under gnome-47 + wayland.
The same application works ok when executed using sway (wlroots) as window manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants