[SOLVED] Focus Problem with Dual Monitors when Launching Program with Bash script
Hello programming forum,
My computer has two monitors and each monitor operates from its own separate X server.
I want to launch a program on the second monitor from the first monitor using a simple bash script (DISPLAY=":0.1" /usr/bin/mythfrontend &).
This approach works but once I lose focus on the application in the second monitor, I can not get focus back again unless I close the application and open it back again.
The only remedy is to launch the program from the second monitor instead of the first monitor.
Is there a way I can fix this problem such as adding code to the bash script so that I can launch the program from the first monitor and be able to regain focus in the second monitor (with a mouse click) if it is lost?
Thank much in advance,
Last edited by rrrssssss; 12-01-2009 at 05:43 AM.