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

get absolute mouse position in screen space #2773

Open
4 tasks done
Gibbz opened this issue Jan 31, 2025 · 0 comments
Open
4 tasks done

get absolute mouse position in screen space #2773

Gibbz opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Gibbz
Copy link

Gibbz commented Jan 31, 2025

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

I'm using cursorMoved from https://docs.rs/iced/latest/iced/advanced/mouse/enum.Event.html

The position is in the application window space. I'm trying to use it to move my app window. However as the window moves, the position changes so it does not work correctly.

What is the expected behavior?

I'd like to get coordinates of the mouse in the screen space. With access to the screen dimensions. So I can move my decoration free application around.

Version

crates.io release

Operating System

Linux

Do you have any log output?

Na
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant