How to move a window between screens?
Glynn Clements
glynn at gclements.plus.com
Fri Jan 9 07:33:15 PST 2009
Gerald Dachs wrote:
> How to move an application window between 2 independent (no Twinview,
> no Xinerama)
> screens of a x servern from outside of the application?
> Do I have to use something like xmove? It looks so over sized, because
> it is mainly for movement between different x servers on different
> machines.
>
> I suspect that it won't be so simple that I can XUnmapWindow the
> window, change the screen somehow and XMapWindow the window again.
You can't move a window between screens. For a start, many server-side
entitites (e.g. pixmaps) are tied to a particular screen, so the
client won't be able to use existing pixmaps (etc) if the window was
to suddenly move to a different screen.
Also, the new screen may have a different depth, visual etc, and the
client isn't expecting these properties to suddenly change.
You either start the client on a proxy X server with "mobile" output
(e.g. Xvnc), or this sort of thing has to be done in the client.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the xorg
mailing list