I am facing a strange bug on macOS (which might also be just bad coding on my side albeit I am unsure what). The bug does not show up on Linux.
I have a non modal, without border window and a Fl_Scrol (vertical)l and inside a Fl_Pack (vertical too) (actually a derived widget that allows layout without redrawing that Greg Ercolano wrote for me once).
The widgets appear correctly on a first run. The problem is that scrolling the Fl_Scroll, once it shows, with the scrollbar or with the mouse wheel will stretch and blur the contents of the Fl_Pack (as I, hopefully, show in the attached picture).
If I just do a PUSH (instead of a DRAG) on the scrollbar, the Fl_Pack will refresh properly. Also, if I redraw the window with some auxiliary code that allows changing the position of the window will also fix the redrawing of the Fl_Pack.
Has anyone seen something similar on macOS and may have a clue on what I may be doing wrong? I tried reproducing it with a simple example, but so far I’ve been unsuccessful
.