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