Originally posted by Weasel
View Post
input-leap/barrier/synergy they all require to be able to input events that can move around windows. But these are controls designed that you have a human operator.
Yes using combination of InputCapture xdg-desktop portal and libie from libinput that are both dbus solutions input-leap works.
Now what makes it hard is that you cannot get the position of windows right. Yes screen-capture and process it possible to work out where a window is and send input. Now script is getting insanely complex. What if this is the wrong way.
There is a problem you are forgetting Weasel. User writes script quite a while latter still using script forgets what it does and moves a window at the wrong time causing something unexpected to happen. Issue with X11 and Windows automation. How to avoid this problem.
Lets look at wldbg in the middle between the application and the output compositor. Now this allows a script to control wldbg that then controls the application with relative positions. User moves window nothing bad happens.
More advanced version of this proxy solution the script could lock out user input to application while it does a chain of operations.
For scripting you desktop you really do want wayland proxy compostior that a form of seamless.
Yes feature I want to see is is a proxy wayland compositor made particular for application control. I also would love to see Wayland robustness complete and feature added where you can send message and say please disconnect X application from Y wayland compositor and connect to Z wayland compositor.
Weasel you have not had xnest seamless under X11 that would be what a wayland proxy compositor is.
Relative positioning avoids a stack of problem. Method we have used to automated applications under windows and x11 like it or not has been buggy.
Proxy between application and output source when controlling application is the safest option.
More you look at it giving script absolute positions is more often and not the wrong thing. wldbg and other debugging parts of wayland demo a different way of doing application control. This other way of application control where user and script actions on application can be kept out of conflict with each other.
Yes xnest/xepher getting a seamless option added would give you something like a wayland proxy. Think about it nested/proxy solution you can prevent a script from sending input events to random applications.
Lets try to work to having proper script application control that for sure to send events to the correct application instead of the hacks of application control windows and X11 have had up until this point that have no promise of sending event to right application.
Comment