home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16510 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!mouse
  3. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  4. Subject: spying on xrdb [followup, with a Subject:]
  5. Message-ID: <1992Sep11.003117.9019@thunder.mcrcim.mcgill.edu>
  6. Organization: McGill Research Centre for Intelligent Machines
  7. References: <9209081107.AA11744@vingmed.no>
  8. Date: Fri, 11 Sep 92 00:31:17 GMT
  9. Lines: 33
  10.  
  11. In article <9209081107.AA11744@vingmed.no>, oaf@vingmed.no (Ole Asbjorn Fadum) writes:
  12.  
  13. > Is it possible to listen to the information excanged between xrdb and
  14. > an application?
  15.  
  16. Yes and no.  xrdb does not communicate directly with applications;
  17. instead, both xrdb and the applications communicate with the X server.
  18. It is possible to spy on this exchange (xscope or xmon or similar), but
  19. given what you say I don't think it's what you want to do.
  20.  
  21. > My problem is that I want to customize a popup window in a given
  22. > application but I don't know what the name is.
  23.  
  24. > My thought was that if you could see what resources the application
  25. > requests it's easier (not easy) to find the resource responsible for
  26. > the wanted popup.
  27.  
  28. Yes...except that spying on communication won't tell you that.  The way
  29. this works is that the application queries the appropriate property
  30. (properties, in some cases).  The server sends the property value,
  31. which is the whole resource database.  The application then picks what
  32. it wants out of this and ignores the rest.  So spying on the protocol
  33. will tell you only what you can already find out with xrdb -query; it
  34. won't tell you which parts of that any particular application is
  35. interested in.  There is no good way to find out what you're after.  If
  36. your application is dynamically linked, or you can relink it, you might
  37. be able to do something useful by adding wrappers around the Xrm
  38. routines, but that would be a bit of a mess...
  39.  
  40.                     der Mouse
  41.  
  42.                 mouse@larry.mcrcim.mcgill.edu
  43.