home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19359 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.4 KB

  1. Xref: sparky comp.windows.x:19359 comp.windows.x.intrinsics:552
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!tivoli!foraker!taylor
  3. From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
  4. Newsgroups: comp.windows.x,comp.windows.x.intrinsics
  5. Subject: Re: Event order: EnterNotify before Expose?
  6. Message-ID: <6254@tivoli.UUCP>
  7. Date: 19 Nov 92 21:40:40 GMT
  8. References: <BxoJ9I.L94@acsu.buffalo.edu>
  9. Sender: news@tivoli.UUCP
  10. Followup-To: comp.windows.x
  11. Lines: 29
  12.  
  13. In article <BxoJ9I.L94@acsu.buffalo.edu>, okeefe@cs.Buffalo.EDU (Paul O'Keefe) writes:
  14. |> Scenario:
  15. |> 
  16. |> An obscuring window in unmapped and the pointer "falls" into my app window.
  17. |> The EnterNotify arrives followed by an Expose event. 
  18. |> The EnterNotify handler draws the crosshairs in XOR mode.
  19. |> The Expose handler then overwrites part of the crosshairs
  20. |> so the original pixels can't be recovered.
  21. |> 
  22. |> Question 1:
  23. |> 
  24. |> One solution is for the EnterNotify handler to examine
  25. |> the event queue for Expose events and service them first.
  26. |> Is there another solution that's easier and/or better?
  27.  
  28. Why not draw your crosshairs in your expose event in addition
  29. to when you get an EnterNotify.  Suppose your window is
  30. exposed for some reason without an enter or leave notify?
  31.  
  32. When you get an exposure, your are supposed to draw everything
  33. (and that includes cross hairs).
  34.  
  35. |> 
  36. |> Question 2:
  37. |> 
  38. |> Does EnterNotify allows precede Expose in this scenario?
  39. |> If so why?
  40.  
  41. Why not?
  42.