You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for creating enigo! It's been a great help to me.
I'm a wayland user and noticed in the wayland.rs source code:
fnlocation(&self) -> InputResult<(i32,i32)>{// TODO Implement thiserror!("You tried to get the mouse location. I don't know how this is possible under Wayland. Let me know if there is a new protocol");Err(InputError::Simulate("Not implemented yet"))}
So I wanted to add some discussion on this. It appears that Slurp is able to get the cursor position from the wayland compositor, so looking at the Slurp source code may yield some clues on how it could be implemented.
In the meantime, for anybody that needs this functionality, this hacky workaround might work for you, using a subprocess to get the location from slurp.
Thank you for your research. I won't have time to look at the source code for a while but once I do, it will be helpful to have some code as a reference :)
Hi, thanks for creating enigo! It's been a great help to me.
I'm a wayland user and noticed in the wayland.rs source code:
So I wanted to add some discussion on this. It appears that Slurp is able to get the cursor position from the wayland compositor, so looking at the Slurp source code may yield some clues on how it could be implemented.
In the meantime, for anybody that needs this functionality, this hacky workaround might work for you, using a subprocess to get the location from slurp.
The text was updated successfully, but these errors were encountered: