I need to run some-program which makes screen capturing via xlib library in separate xserver session. So, I start my ubuntu 14 and
origin xserver session (lets call it this way) started and after that I run
After running this command a black screen appears and on this black screen I see my program and it works as expected. That's ok - this is what I need.
However, firstly I want to use my computer and secondly I must run N such programs in N separate xserver sessions. The problem is that when I try to return to my
origin session by pressing ctrl+alt+f7 some-program continues working however, its screen captures become simple black rectangles (no any content).
How can I start my some-program in separate xserver session and leave it running as I am still using that session?