[squeak-dev] The Trunk: Morphic-dtl.1680.mcz

David T. Lewis lewis at mail.msen.com
Wed Sep 16 02:48:16 UTC 2020


On Tue, Sep 15, 2020 at 07:29:32PM -0400, David T. Lewis wrote:
> On Tue, Sep 15, 2020 at 04:48:33PM -0400, David T. Lewis wrote:
> > On Tue, Sep 15, 2020 at 01:17:41PM -0700, tim Rowledge wrote:
> > > 
> > > 
> > > > On 2020-09-15, at 1:12 PM, David T. Lewis <lewis at mail.msen.com> wrote:
> > > > 
> > > > This was the first issue that popped up when I put a halt in eventMillisecondClock.
> > > > 
> > > > I see a number of other senders of eventMillisecondClock that handle the case
> > > > of an event buffer with time stamp of 0. Is that even possible?
> > > 
> > > I wrote about some of those last week; I suspect that the idiom was there because some very early VM stuff couldn't provide the time stamp. Certainly shouldn't be the case any longer and I'd be inclined to remove them all.
> > >
> > 
> > Yes thanks, sounds right.
> > 
> > This one was kind of a trivial change, but it seemed to be the most common use
> > of eventMillisecondClock in practice, so it seemed worth a commit to make it
> > go away.
> > 
> 
> Tim,
> 
> And as you also said in your earlier message:
> 
> > EventSensor>>#createMouseEvent is only used in a couple of places to do
> > with rectangle transforming interactively, and probably ought to be improved.
> > EventSensor>>#nextEventSynthesized is only used if the EventSensor has
> > no event queue and that is ... a bit complex but probably should
> > never happen since we removed the old InputSensor years and years ago.
> > EventSensor>>#primGetNextEvent: - since we declare the prim essential maybe
> > we should drop the fake-it code and really insist on the prim being there?
> 
> 
> These three seem to be at the heart of the matter. If we can sort these out,
> then the the millisecond clock may become a moot point.
> 

Hmmm... it couldn't possibly be this simple?!? Maybe I am overlooking something.

In any case, I put these in the inbox:

   Name: Kernel-dtl.1340
   Implement Sensor eventTimeNow for support of synthesized events. Eliminates
   the sometimes incorrect assumption that event time stamps must match the
   obsolete VM millisecond clock, and allows the Windows VM to consistently
   use native Windows event time stamps in the event queue.
   
   Name: Morphic-dtl.1681
   Use Sensor eventTimeNow for synthesized event times.

Dave
 


More information about the Squeak-dev mailing list