On Sun 30 Jun 2019 at 18:36:20 -0500, Matthew D. Fuller wrote:
> > The change (or lack thereof) in SetFocus() makes no difference at
> > all in either case for me.  Which seems a strange; a fairly small
> > amount of thinking on the matter _does_ suggest it's a thing that
> > should be needed, but somehow...  isn't?  I'll have to think more on
> > that.
> 
> FWIW, I figured this out; a little experimentation showed that my
> crash happened on the OtpRestack on the _new_ focused window, not the
> _old_ being-unfocused window.  So it was because of the transient that
> wasn't pre-raised to where it was expected.  So maybe if your crash
> was on the way down, you may also have crashed in that second (when it
> wasn't lowered right), in which case the Focus NULL'ing wouldn't make
> a different.  Or maybe you crashed in the first one somehow, in which
> case it would have?  Mmph.  Lot of moving parts, to keep in the head,
> trying to guess...

Intersting! My theory so far was that *during* the change of focus, the
window depths might be inconsistent. But after OtpRestackWindow()ing the
newly focused window, it should be finished, and all consistent and
happy. That was consistent with my crash between the two calls to
OtpRestackWindow(). My change was also based on that idea.

So far I haven't turned on debugging to print all restacking operations,
but maybe it is time for that... and we might find out that everything
is different...

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- "What good is a Ring of Power
\X/ rhialto/at/falu.nl      -- if you're unable...to Speak." - Agent Elrond

Attachment: signature.asc
Description: PGP signature

Reply via email to