home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!noc.near.net!gateway!miki!oj
- From: oj@miki.pictel.com (Oliver Jones)
- Subject: Re: Communication between Motif apps using properties
- Message-ID: <1992Aug25.161042.1845@miki.pictel.com>
- Summary: XSelectInput (..., PropertyChangeMask)
- Organization: PictureTel Corporation
- References: <1992Aug19.011753.18485@tfs.com>
- Date: Tue, 25 Aug 1992 16:10:42 GMT
- Lines: 24
-
- In article <1992Aug19.011753.18485@tfs.com> meir@tfs.com (Meir Zaid) writes:
-
- >My problem now is that the applications sending the messages to the
- >messages handler are not X/Motif applications so they don't have widgets
- >or windows, or XtMainLoop. Now, the messages handler app only seems to
- >get the PropertyNotify event when the sending application has a XtMainLoop.
-
- Xt takes care of the solicitation of the PropertyNotify events for you.
- If you're working at the Xlib layer, you have to use XSelectInput explicitly
- to solicit the PropertyNotify events.
-
- XSelectInput (dpy, win, PropertyChangeMask| <<whatever other mask bits you need >>);
-
- Then, you'll get PropertyNotify events; these notify you of
- changes to property values.
-
- >I tried creating a simple invisible window on the sending app but this
- >doesn't help.
-
- You don't need to create an invisible window; there's nothing wrong with
- using your app's top-level shell window or even the default root window
- to store your property (but if you use the default root window take
- extra care to destroy the property when your system of application programs
- terminates).
-