On Tue, 9 Dec 2025 09:09:59 +0000
Will Godfrey <[email protected]> wrote:

>Yes, as soon as you *see* this it's quite obvious really. I suppose, as a very
>temporary work round, we could check whether running under wayland and if so do
>that simple draw. This gives us a dilemma though. How can we restore a nice
>looking control (which has almost become a meme for Yoshimi)?
>
>I did some experimenting with cairo something like 25 years ago - so have now
>completely forgotten it :( I do remember though that cairo doesn't care what
>'surface' you draw on, so I wonder if it is possible to draw to a block of
>memory, then get fltk to display it as a bit image - like it does for the
>splash screen.
>
>In many windows the knobs are of the same size (or just one of two sizes) so to
>improve drawing efficiency maybe we could make pointerless knobs of the right
>size and paste copies of these in the window where needed, then use fltk's line
>drawing to make the individual pointers.
>

Some good news!
Jesper has come up with a solution for this. Quoting his comments:
"
 I have now made a patch making use of the new API in
 fltk 1.4 that seems to handle both X and Wayland correctly in my own
 testing.
 The lv2 plugin build still needs to be tested for the patch, if you have
 the ability to do so or know someone who can (I am testing the patch on a
 virtual machine with no DAW installed).

 The changes are pushed to the branch cairo-fltk14-wayland-patch (see
 https://github.com/Yoshimi/yoshimi/compare/master...cairo-fltk14-wayland-patch)
 which I split off from the master branch, but it should apply cleanly to
 the most recent release (amended with appropriate change log adjustments
 etc.).

 What this patch does NOT do is add any wayland workarounds when yoshimi is
 compiled with fltk 1.3, though if that is required the most sane solution
 would probably be to just fall back to the default widgets, and forgo the
 custom tooltip graph (assuming 1.3 works at all with pure wayland, which I
 have not tested).
"

I'm unable to test that here as I don't have a machine I can safely install
wayland on.

-- 
Will J Godfrey




_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel

Reply via email to