Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!ads.com!killer!usenet From: medmunds@verity.com (Mike Edmunds) Newsgroups: comp.windows.x Subject: Notification when selection owner changes Summary: How can my application find out when... Message-ID: <1991Jan23.221631.27410@verity.com> Date: 23 Jan 91 22:16:31 GMT Sender: usenet@verity.com (USENET News) Reply-To: medmunds@verity.com Organization: Verity, Inc. Lines: 19 Is there a way (using Xlib or Xt) for my application to be notified whenever the owner of the PRIMARY selection changes? Or better yet, when the selection itself changes? I'd like to be able to update my application's menus based on the available selection targets. To do this, I need to know when the available targets have changed, which is likely to be when the selection changes. After looking through the ICCCM and a couple of Xlib and Xt references, it appears to me that the only way I can receive notification of selection status is to actually own the selection myself (in which case I'll be told when I lose it). That's not what I want to do. Thanks in advance for any ideas. - Mike Edmunds medmunds@verity.com Verity, Inc.