Been working on my own setup for boxing with wine, and while searching and troubleshooting some focus issues I ended up here.
The wine virtual desktop and xtest combo works well, but if you're like me and use xfce you can quickly run into trouble.
After much testing it turns out that xfce has a lot of weird behaviors regarding giving focus to windows, especially if the mouse is not within the bounds of that window.
No matter what I tried, sending focus events, using wmctrl or xdotool, or even the built-in alt tab (cycle windows) and raising windows, if my cursor was not in the right place the focus would be lost, leaving the wine instances unresponsive to input. Tried with and without "focus follows cursor", same results.
Finally randomly stumbled on the fact that just using Ctrl+Alt magically lets the window accept input again. This actually works without the cursor in the right place too. So, for anyone with similar focus problems while switching windows etc, you can try sending the following command to the "Default IME" id:
Code:
xdotool key --window _ID_HERE_ Ctrl+Alt
As for the rest of my setup, it's a mess of combined scripts and tech, need to clean it up eventually before it can be seen in public.
It removes window decorations/titlebar, moves/resizes the windows to fit in slots so that the screen is fully utilized, can move windows between slots, listens to global input and replicates to windows in slots that are not the current active one, etc.
If anyone is stuck on such things give me a shout, I can give some pointers for now while I clean up the code.
Right now I'm working on a small-scale version of how isboxer handles macros/targeting, trying to understand how best to generate and bind an addon with commands/macros.
Anyway, enough rambling, hopefully this can help someone else in the future that have the same problems as I did.
Connect With Us