SteveA wrote:The problem I get is as explained; when I start the application from one keyboard and keep using the other every minute or so, all is fine. But if I do not use the other for say minutes the moment I press a key the Raspberry Pi flips back to the desktop and I loose my graphics window (loose the focus?). I am looking at how to keep the graphics window displayed until my program does an actual Finish()
Is your program exiting, crashing or being killed? It sounds like it.
The OpenVG graphics "window" isn't a window that X knows about or has any control over, if it has gone and you have the desktop back then either (a)
your program closed it itself, (b)
your program finished/died forcing the window to close or (c)
some other program managed to re-arrange the display layers to move your window to be behind the desktop.
The only program that I know that resets the display (and gets rid of all open graphics layers) is tvservice
, if you change the screen mode with that then all layers are removed and would need to be re-added, but I can't see X using it.