[comp.windows.x] How does the application "sproperty" work?

cowan@dover.sps.mot.com (Andrew H Cowan) (12/06/90)

I've been trying to patch "xwd" to work under "swm" (the
Solbourne window manager).  It fails because swm has a
virtual desktop and remaps the root window.  The bottom
line is that the portion of xwd that lets the user select
a window with the mouse doesn't return the correct window 
id.  Yet Solbourne's application "sproperty" lets the user
select a window so it can be done.  

Does anyone know how sproperty determines the correct 
window?  (Might some kind soul send me that portion of
sproperty as an example.)  Or if someone has already fixed
xwd to work under swm I'd be grateful if you'd mail me
the changes.


        **                   /   \                   **
     ** **                  |     |                  **
     ** ** **                \___/                   ** **
     ********                                        ** **
      ******         __                  **          ****
        **        \_/oo\_/              ****         **
........**..........\||/................****.........**...........
Andy Cowan...........||.............cowan@soleil.sps.mot.com......

toml@ninja.Solbourne.COM (Tom LaStrange) (12/07/90)

   I've been trying to patch "xwd" to work under "swm" (the
   Solbourne window manager).  It fails because swm has a
   virtual desktop and remaps the root window.  The bottom
   line is that the portion of xwd that lets the user select
   a window with the mouse doesn't return the correct window 
   id.  Yet Solbourne's application "sproperty" lets the user
   select a window so it can be done.  

   Does anyone know how sproperty determines the correct 
   window?  (Might some kind soul send me that portion of
   sproperty as an example.)  Or if someone has already fixed
   xwd to work under swm I'd be grateful if you'd mail me
   the changes.

xwd also does not work well with tvtwm because of the same reason.  The
main reason that sproperty works the way you would expect is because the
OI (Object Interface) toolkit "knows" about swm and tvtwm type virtual
desktops.  

I seem to remember looking into the xwd problem several months ago
but I don't remember off the top of my head what problems I found that
prevented me from attempting to fix it.  Perhaps I'll look again.

One easy way to get around this problem for now is to make the window
sticky before doing the xwd.

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501