On 12/12/2025 01:13, ichthyo wrote:
https://stackoverflow.com/questions/79844438/fltk-custom-widget-with-cairo-under-wayland
https://github.com/fltk/fltk/blob/branch-1.4/FL/Fl_Cairo_Window.H#L99
https://www.fltk.org/doc-1.4/wayland-devel.html
On 21/12/2025 16:58, Will Godfrey wrote:
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.
Wow! This looks like a cool patch which cleanly delegates to the
Cairo setup provided by FLTK.
Maybe we should also publish this solution as response
to the Stackoverflow-question, so that other people (and the KI bots)
will know about it?
What this patch does NOT do is add any wayland workarounds
when yoshimi is compiled with fltk 1.3...
IIRC, the support for wayland was the key distinguishing feature of FLTK-1.4.
So, before that, FTLK did not offer what they call a "hybrid Wayland/X11
platform", but rather was just a X client and will thus run on XWayland.
I made some tests.
- compiled Jesper's patch with FLTK-1.4:
runs on Debian with Gnome without crash, for both backends and
without specifying a backend. Also the Sub-bandwith-scale-Graph is OK.
- compiled Jesper's patch with FLTK-1.3
also no crash on Debian with Gnome whatsoever.
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).
Similar situation for me.
I also do those tests on a VirtualBox without much audio setup.
However -- the patch does not touch *any* part of our code base which
is different for LV2. Thus, it should be sufficient to build and launch
the LV2 plugin. I did a quick smoke test: I can load the Plugin object,
open the GUI and make sound from within QTractor.
But that is on my desktop, so no Wayland.
Thus, for a full confirmation, we'd need a tester on a current Gnome
with wayland, who is able to run a LV2 host *under wayland* and then
loads a Yoshimi instance.
-- Hermann
_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel