|
|
The code must be checked to make sure the size fields are updated before any calls that might cause a recursive resize are done. And then checks must be added before sending resizes to ignore them if the size is already correct. I suspect mostly that there has been some rearrangement so that the fields are not updated early enough.
On 11/23/21 12:29 AM, imacarthur wrote:
On Monday, 22 November 2021
at 18:11:45 UTC Bill wrote:
I seem to remember adding quite a few checks to
see if it was resizing to the size it already was in order
to reduce this.
FWIW, when I saw this post originally, I had a vague sense
that, at some point in the distant past (which I can now find
no evidence for...) there was an investigation into recursive
calls to resize() and so forth. My recollection, such as it
is, was that there was also a platform related aspect to it
(i.e. X11 behaved differently to Win32, etc.)
Sounds familiar -- may have been an STR, as sometimes those
threads could
get really long (esp. if I was involved, lol).
There are a few deep rabbit holes; (a) following events up and
down the widget
hierarchy was one, and (b) tracking down resize() calls in and
out of the window
manager was another.
Some of that behavior was even window manager specific, due to
how it could
redefine/restrict/retrigger resize behavior. Also, the app
itself in trying to reopen
itself at the same position/size it had been in when it last
closed, might go through
a few resizes, one opening at the default size, then resizing
after loading its previous
config.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/1c4c3c57-a6c7-953c-cb33-0f41be74e805%40seriss.com.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/CAL-8oAirZNiez9DdrTSJw_wM9FTvYd71XunaMM_Oa1h%3DSHRopA%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |