Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU Newsgroups: comp.windows.x Subject: Re: Moving windows from the command line Message-ID: <9102180514.AA22053@lightning.McRCIM.McGill.EDU> Date: 18 Feb 91 05:14:25 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 31 >> Is it possible to move an x-window using the command line in another >> session. [...] > Yes, use XConfigureWindow. (a) that's hardly command-line (you need a small wrapper program), and (b) you should use XReconfigureWMWindow. (Why should you? At present, the Xlib documentation leads me to believe that you don't need to when all you're doing is moving the window. But I'm not sure of this, and if and when the ICCCM changes, presumably the implementation of XReconfigureWMWindow will change to match, so your client code doesn't need to be touched. XMoveWindow/XConfigureWindow may not always be the correct method to request that your top-level window be moved.) >> For that matter, is there a way to iconicize it as well? > Yes, use XUnmapWindow. If this does anything, it will probably result in the window being withdrawn, not iconified. (See the ICCCM, section 4.1.4.) The proper thing to use to request that a top-level window be iconified is XIconifyWindow. Of course, in all of these cases, you can only request. The window manager is free to obey the request, ignore it, whatever. (As plausible examples for these requests, a tiling window manager will likely ignore move requests, and a window manager that doesn't do icons will perforce ignore please-iconify-me requests.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu