5 ms·
Slightly related. On wayland based linux desktops this would never work because an app is not allowed to hijack the mouse pointer to dispatch events. I believe
by AyanamiKaine 2mo ago
Slightly related. On wayland based linux desktops this would never work because an app is not allowed to hijack the mouse pointer to dispatch events. I believe only the compositor is allowed to do that.
I know, because I wanted to automate a GUI task using PyAutoGUI and it wouldnt work on wayland no matter what.
- Fire-Dragon-DoL 2mo agoThere is mouseless that seems to work on wayland https://mouseless.click/ https://mouseless.click/
- kreelman 2mo agoThat is an option, but it's not free.
- AyanamiKaine 2mo agoBut only if you "disable Wayland’s extra restrictions around keyboard/mouse access for Mouseless to work". [0] [0] https://mouseless.click/docs/wayland_configuration.html https://mouseless.click/docs/wayland_configuration.html
- uukelele 2mo agoMay I interest you in this: https://github.com/uukelele/waydotool https://github.com/uukelele/waydotool
- AlienRobot 2mo agoI wonder if blender works on wayland, because it has a feature that makes the mouse cursor "loop" across the window if you are dragging something.
- jcelerier 2mo agoThe protocol for this has recently been accepted, now it has to be implemented by every compositor
- AlienRobot 2mo agoThat sounds like hell. All this just to set the X, Y of the mouse pointer?
- jcelerier 2mo agoNot even, this was deemed too insecure. So now we have to have one protocol per-use case instead of something that allows to handle easily all the use cases we already know exist - the most stupid thing possible
- toast0 2mo ago> That sounds like hell. Wayland isn't an eternal punishment, it's just a protocol. :p
- AyanamiKaine 2mo agoThat features works completly fine when I use Blender(5.2) and wayland cant say if older versions might not work.
- KetoManx64 2mo agoThis is why I'm still on X11, the lack of deep level accessibility/automation is still a big hurdle when it comes to Wayland.
- AyanamiKaine 2mo agoYea, one way I saw you can circumvent it is by running in xwayland mode. But that can come with its own problems.
- binarin 2mo agoActual problem on Wayland is that it often doesn't work when you are trying to click somewhere in the menu - for the mouse clicking app to read keyboard input, it must take focus away from the app where the click should go. And some toolkits just close menus on focus loss. I personally use wl-kbptr, and the problem above is the only one that can't be solved without explicit support from the compositor.
- gen2brain 2mo agoWhat about wp_pointer_warp_v1? That should be supported in some compositors. But not sure how to actually "send" the click event. I often try a session with Labwc/LxQt instead of my Openbox/LxQt, and while there is progress, still not fully usable, so still no Wayland for me. But with X11, I can at least add xvfb, xdotool, and other utils, and AI has no problem writing (and testing) a GUI for me.
- AyanamiKaine 2mo agoOh wp_pointer_warp_v1 works fine when you want to move the cursor that is not a problem. One application can simply say move the mouse to a different window but it cannot say click. So in the sense as far as I understand it is that in wayland one application is not allowed to use the input of IO devices to interact with other applications.
- gen2brain 2mo agoSo, "security" strikes again. Windows shell not be moved, pointers shell not be clicked, but you can move the mouse if you want to.