home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:19359 comp.windows.x.intrinsics:552
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!tivoli!foraker!taylor
- From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
- Newsgroups: comp.windows.x,comp.windows.x.intrinsics
- Subject: Re: Event order: EnterNotify before Expose?
- Message-ID: <6254@tivoli.UUCP>
- Date: 19 Nov 92 21:40:40 GMT
- References: <BxoJ9I.L94@acsu.buffalo.edu>
- Sender: news@tivoli.UUCP
- Followup-To: comp.windows.x
- Lines: 29
-
- In article <BxoJ9I.L94@acsu.buffalo.edu>, okeefe@cs.Buffalo.EDU (Paul O'Keefe) writes:
- |> Scenario:
- |>
- |> An obscuring window in unmapped and the pointer "falls" into my app window.
- |> The EnterNotify arrives followed by an Expose event.
- |> The EnterNotify handler draws the crosshairs in XOR mode.
- |> The Expose handler then overwrites part of the crosshairs
- |> so the original pixels can't be recovered.
- |>
- |> Question 1:
- |>
- |> One solution is for the EnterNotify handler to examine
- |> the event queue for Expose events and service them first.
- |> Is there another solution that's easier and/or better?
-
- Why not draw your crosshairs in your expose event in addition
- to when you get an EnterNotify. Suppose your window is
- exposed for some reason without an enter or leave notify?
-
- When you get an exposure, your are supposed to draw everything
- (and that includes cross hairs).
-
- |>
- |> Question 2:
- |>
- |> Does EnterNotify allows precede Expose in this scenario?
- |> If so why?
-
- Why not?
-