Newsgroups: comp.windows.x
Path: utzoo!utgpu!cunews!bnrgate!bwdls61.bnr.ca!bwdls49!jsparkes
From: jsparkes@bwdls49.bnr.ca (Jeff Sparkes)
Subject: virtual roots
Message-ID: <jsparkes.660841506@bwdls49>
Sender: usenet@bwdls61.bnr.ca (Use Net)
Organization: Bell-Northern Research, Ottawa, Canada
References: <TOML.90Dec6133404@ninja.Solbourne.COM>
Distribution: comp
Date: 10 Dec 90 15:05:06 GMT

In <TOML.90Dec6133404@ninja.Solbourne.COM> toml@ninja.Solbourne.COM (Tom LaStrange) writes:

>The problem with xwd not working correctly under swm or tvtwm is due to the
>fact that the subwindow member of the of the button press event comes back
>with the window id of the virtual desktop window.  XmuClientWindow()
>is called with this window id which simply looks through the descendants
>for a client window (one with WM_STATE set).  This of course results in
>getting some window rather than the one under the pointer.  Perhaps
>we need a new Xmu routine that takes an xy coordinate pair and returns
>the topmost client window at that location?

I think the time has come to standardize this, and get it put into Xlib
so everything works again.  We need a standard property name (how about
VIRTUAL_ROOT?) that the window manager sets as appropriate.  The 
RootWindow macro can be replaced with a function similar to the one that
Andreas Stolcke posted.  I suspect that a more efficient way could be done
with property change events and a little addition to XNextEvent.

I realize that this has probably been discussed in the ICCCM mailing lists;
will somebody point out how naive I am?

This would be a good thing for patch 19.....
--
Jeff Sparkes jsparkes@bnr.ca	Bell-Northern Research, Ottawa (613)765-2503
Another feature is that the seats float, so that the airline can recover
them if the plane crashes into the ocean. -- Dave Barry
BOB drives a TuRBO!
