Re: [racket] Problem with on-subwindow-event

2012-10-02 Thread Kieron Hardy
Awesome! Thanks, Matthew and Robby, for looking at this. (* Cheers +inf.0), Kieron. On Tue, Oct 2, 2012 at 7:36 AM, Matthew Flatt wrote: > At Mon, 24 Sep 2012 23:47:17 -0600, Kieron Hardy wrote: > > I used 'enter to make the problem easy to demonstrate, but what I'm > really > > interested in

Re: [racket] Problem with on-subwindow-event

2012-10-02 Thread Matthew Flatt
At Mon, 24 Sep 2012 23:47:17 -0600, Kieron Hardy wrote: > I used 'enter to make the problem easy to demonstrate, but what I'm really > interested in is button up/down events and they get duplicated also. It turns out that enter/leave events are generated very differently from button up/down even

Re: [racket] Problem with on-subwindow-event

2012-09-25 Thread Kieron Hardy
>> But I might be able to work-around by storing the mouse-event% when first >> processing, and then treat as duplicate all calls to on-subwindow-event that >> pass that same event. I'm having trouble with this: Trying to store the mouse-event% with set! into a field at the first invocation an

Re: [racket] Problem with on-subwindow-event

2012-09-25 Thread Robby Findler
Well, I'm not sure what is going on, I'm sorry to say. I looked through the code in mred/private/wx/win32/ and it seems like racket is just handing along events that come its way (from windows). There may be a bug in there that causes event duplication, but I'm not seeing it. Robby On Tue, Sep 25

Re: [racket] Problem with on-subwindow-event

2012-09-24 Thread Kieron Hardy
I used 'enter to make the problem easy to demonstrate, but what I'm really interested in is button up/down events and they get duplicated also. Unfortunately there's no guarantee that a window will ever get a matched pair of up/down events (due to pop-ups etc.) so I really can't rely on that.

Re: [racket] Problem with on-subwindow-event

2012-09-24 Thread Robby Findler
Oh. Well, either this is going to be a bug, or it is going to fall under "you sometimes get strange events, thanks to details of how the platform interacts with its apps". I'm not sure which in this case, but can you tell that you've gotten two enters without getting a leave inbetween? Robby On M

Re: [racket] Problem with on-subwindow-event

2012-09-24 Thread Kieron Hardy
On Sep 24, 2012, at 17:57, Robby Findler wrote: > When I run this on the mac, I don't see any enter events, which seems > strange. Strange - I am on Windows but thought the code would work on all platforms. > But my initial reaction to your question was that you need to > use the 'r' argument.

Re: [racket] Problem with on-subwindow-event

2012-09-24 Thread Robby Findler
When I run this on the mac, I don't see any enter events, which seems strange. But my initial reaction to your question was that you need to use the 'r' argument. Robby On Mon, Sep 24, 2012 at 5:00 PM, Kieron Hardy wrote: > Hi all, > > Considering the program below, does anyone know: > > - Why d