Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Anarchean via gtk-list
Hello Emmanuele, Well, my requirements allow an only-X or -Wayland solution, but I totally understand what you mean, I feel it is weird using a testing API do implement functionality. My current solution is using uniput to create a virtual device in user space, I'm just having trouble with the

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Anarchean via gtk-list
Hi James, xdotool is a good option, but I would prefer to use a library instead, and a cross-platform one. I looked xdotool source code, and they use XTest internally. I was just curious to see if there were any way of doing that directly from GTK. Anyway, thank you for answering. ‐‐‐ Ori

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Emmanuele Bassi via gtk-list
Hi; virtual keyboards running outside of the windowing system platform as clients do not use the XTest API — mostly because it's meant only for testing X, and because it's only for X. Injecting synthetic events into the windowing system is just not going to give you what you want, if what you want