Yesterday at 5:53pm, Paul Tomblin wrote:

> John Kennis wrote:
> 
> > I am working on a tool in which you can define the workspace an
> > application starts on depending on application name or class (similar to
> > fvwm). As long as the tool is running it will move application windows
> > with a certain name or class to a certain desktop. So not just at blackbox
> > startup.

cool
 
> Could you possibly make it use some other X resource other than application
> name or class?  Because I'd like to start some xterms (or rxvts or dtterms) in
> one workspace and some in another and some in another.  I can't change the
> application name between the xterm instances,

xterm -name blah
see xterm(1)
                                                but I could use "-xrm" to set
> some other X resource.  At least I assume I can add some resource using -xrm
> that an application could query?  I've never done that, so does anybody know
> if that's possible?  It would be nice to be able to do a "xterm -xrm
> "Workspace: <n>" and have it go to Workspace <n>.
 
then blackbox would have to retrieve X resources for other apps, which i
don't know is efficient. The new wm spec being developed for KDE2.0 and
Gnome1.2 will, afaik, allow apps to hint blackbox (or other wm's) at which
workspace to open a window. The app then will contain a way for the user
to affect that behaviour.


There are different approaches to workspaces. Some windowmanagers use a
very big virtual root window (like Fvwm) eg 3*800 x 3*600 pixels. This
window is the parent of all app windows. The wm moves the pseudo root
window to do workspace switching. Fvwm and Enlightenment do this.
Specifying enormous offsets for app windows will have them display
somewhere on the big pseudo root window, which will appear to be in some
other workspace.

Blackbox uses another approach: Blackbox keeps its own list of windows and
on which workspaces they are on, and simply unmaps windows from a
workspace when switching and maps the windows for the new one. So there is
no virtual root window to which you can specify big offsets. I don't know
thats why blackbox is faster than other wms.

Reply via email to