home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20890 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!texsun!cronkite.Central.Sun.COM!west.West.Sun.COM!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!marley.Eng.Sun.COM!ama
  2. From: ama@marley.Eng.Sun.COM (Al Amaral - SunSelect)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Writting to other client`s windows.
  5. Message-ID: <1iif8uINNiuu@seven-up.East.Sun.COM>
  6. Date: 7 Jan 93 23:44:30 GMT
  7. References: <251@io.trident.datasys.swri.edu>
  8. Organization: Sun Microsystems Inc. - BDC
  9. Lines: 27
  10. NNTP-Posting-Host: marley.east.sun.com
  11.  
  12. In article <251@io.trident.datasys.swri.edu> johns@io.datasys.swri.edu (Stephen Johns) writes:
  13. >I have two clients, via sockets I send the window ID from one client
  14. >to the other.  I then try XDraw calls to the passed window ID.  Nothing
  15. >happens, and I mean nothing, no warning, no errors, no drawing.  Does
  16. >X support this at all?
  17.  
  18. Yes, this is supported.  Did you flush your X dpy buffers?  Calling
  19. XSync, XFlush, or most of the XEvent routines will do this for you.
  20.  
  21. The only two things (that I can think of at the moment) you have to 
  22. watch for is:
  23.  
  24. 1)  If your clients are not on the same machine you have to make sure
  25.     that different byte ordering is taken into consideration when you
  26.     pass the window ID through the socket.  If this was your problem
  27.     you would get an error...
  28.  
  29. 2)  If the client which created the window goes away the window will,
  30.     by default also go away.  The other client had better watch for this.
  31.     There is supposed to be a mechanism for asking the server to keep
  32.     things like windows around after the client has closed its connection,
  33.     but I've never used it so I don't know off-hand what it is.
  34.  
  35.  
  36. --
  37. --------------------------------------------------------------
  38. Al Amaral                Al.Amaral@East.Sun.COM
  39.