On Wed, 16 Nov 2005, David Tweed wrote:
Hi, thanks to Tuomo's suggestion I know that an application can make use the
_NET_ACTIVE_WINDOW hint to request that a given window becomes visible. I'm
just checking whether, in the current architecture for Ion3 (eg, with
ionflux, etc) there's any way for a program to request moving one of it's
windows w1 to some frame on the current workspace other than the one on which
the currently active window (called, say w2) is attached? (I suspect it may
not, but thought I ought to ask.) Ie, some way to push w1 to a separate frame
(on the same workspace) to w2?
The usage case is that I'm working on an editor-type application where the
user working in a window can request that the (potentially different) window
where a particular string is "defined" (think, eg, function definition in C)
make itself visible for comparison. Using _NET_ACTIVE_WINDOW I can make it
become visible, but if it happens to be in the same frame as the current
window it raising itself is only part of the "ideal" behaviour, since the
user probably requested looking at the definition because they want to
compare it with how it's being used in the current window. (I know it's not
that much work to manually move the newly raised window to a different frame
with the mouse, it'd just be nice if it could be accomplised entirely
programmatically.)
Many thanks for any insight,
cheers, dave
The beauty of _NET_ACTIVE_WINDOW (if I am allowed to say that) is that
it is standard, it will work in any wm that supports the standard. There
isn't any standards compliant way to say "put this window in that frame"
since the standard doesn't know about frames at all. So anything you did
would have to be ion specific and that's a bit ugly.
What you could do though, is request that ion3 have an
active_window_hook which would let you write an ion script which when it
received a _NET_ACTIVE_WINDOW request checked if the frame the window
was in was the current one and did something intelligent. (That's
probably not exactly what you were wanting to hear but it's at least
something.)
-Etan