To keep up the spirit of answering one's own emails:

> I was thinking along a different angle though:
> my idea was to do it in rio, hoping I would somehow be able
> to figure out from which window a new app was started
> (probably there is env var WINDOWID or some such)

Thinking (just a bit) more...
the env var is irrelevant since with above
approach rio will never see it anyway  -
rio will only see that a new window appears.
Rio does know which window is currently active,
and thus it might just decide to replace (overlay)
the 'body' of that one, if it is an 9term
(it can recognize those using X properties, I'm pretty sure)

Something like plan9's window would then be useful
to explicitly create new windows (9terms or directly apps)
(dunno if it's already there)
That should also take care of windows that are
programmatically created on startup.

There might be (will be?) races though -
it will take some time from the start of a
program till its window is created (appears)
which may or may not mess with above assumption
that the active window is the one to overlay.

oh well...
so far it is nothing more than an idea anyway (AFAIK)

Axel.


> and then hide the original thing, and put the new
> window in its place, hoping this would be general
> enough to work with 'any' X app.

Reply via email to