On Sat, Jul 21, 2007 at 08:34:43PM +0100, Ted Harding wrote:
Hi Folks,
I'm looking for a bit of Gnome expertise ...
Suppose I have a Gnome desktop with a number of "workspaces", say 10.
What I want to do is "transplant" a window from one workspace to another under software control (e.g. a shell script).
Gnome certainly has an internal mechanism for this, since if you click on the little square button at the top left of a window, you get a menu which includes options to "Move to Workspace n".
Is there a way to send a code or signal to a window which would cause this to happen?
A related question: can one program the opening of a window so that it is initially "planted" in a chosen workspace?
If my memory hasn't gone completely screwy (very possible!) then I think the workspace is actually a window property on the window, so using xlib and some C you could set that property, then tell the window to redraw and it (should) disappear as the window manager goes "meh, that's not supposed to be there!".
MJR might remember more than me, though - it's been a while since we were working on jewel - might be getting close to a revival though - if the ion3 maintainer doesn't stop being a moron then I'll go back to writing window manglers with mimimum requirements... (though, I have a whole set of needed features these days that I didn't used to have!)
Hope that, err, well - it probably won't help, but it might point you in the right direction - I think you'd be looking at the EWMH specs and a bit of C.
Cheers,