Is it in some way possible to move a Window between Loginsessions in X11, proviced that I can get the XAuthority informations?
The Window will stay on the same Seat and same Display device, but it will be moved e.g. from Session2 to Session3 (currently I use consolekit, so the sessions would be /org/freedesktop/ConsoleKit/Session<X>
).
The use case is: I have a daemon running for which I want the user to have a graphical feedback when it is running. The base case would be to preserve the window through e.g. fast user switching.
I use GTK right now as GUI toolkit and have access to the usual X11 Libs (no XCB, only Xlib) like XAuth, XRandR, XDamage, Xfixes, etc. Also the Daemon has an IPC connection to the Window and can transfer the MIT-MAGIC-COOKIE
(or any XAuth data) to the Window to authorize to the new session.
So my question: Is this possible and, if yes, how?
For clarification: The daemon and the window are seperate programs (only connected via UNIX Socket for IPC). I just do not want to delete and recreated the window everytime the user switches, as that process also holds some logic and some data.