lin-club  

Re: 'r2l' continuation

Nadav Har'El
Wed, 04 Jul 2001 00:46:24 -0700

On Wed, Jul 04, 2001, Tzafrir Cohen wrote about "Re: 'r2l' continuation":
> Anyway: I want to try implement in biditext finding the toplevel window. A
> couple of obvious problems:
> 
> * I figure it is best to use the application's toplevel window, and not
>   the one supplied by the window manager through reparenting. Is there a
>   way to tell that a window is an application's top-level window?

Try looking at the 'xprop' (and similar, xwd, etc.) source, how they find a
top-level window (with or without the frame) when you click on any subwindow.

> * [an interesting spacial case] Any smart ideas for what to do with
>   biditext.so running from a window manager? I guess that for the moment 
>   we can ignore this.

You also need to think of any kind of application that opens several
top-level windows, and don't know how to decide which one to put the property
in. You might want to take a look at xlsclients(1) - this might be a good
way to find top-level windows for any clients conforming to the session-
management standards.

> Anyway, maybe it will be useful to start with puting a global property on
> the root window.

If you want, you can also have a root-window property on the root window,
containing text defining the rl property by process, rather than by window
(e.g., each process is defined by a (hostname,pid) pair).

-- 
Nadav Har'El                        |   Wednesday, Jul  4 2001, 13 Tammuz 5761
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Just remember that if the world didn't
http://nadav.harel.org.il           |suck, we would all fall off.