Hi Ian,
so I followed your hint and built fltk (v1.4.4) by myself. First I used basically the default build config and ended up with the same result. No window decorations by default and when I set LIBDECOR_FORCE_CSD=1 it also crashes with the bad_alloc exception.
Then I built the example apps that are in the repo and made an interesting discovery. All of them also crashed in the same way except glpuzzle and sudoku, they run and display window decorations! What makes these two different I've yet to figure out.
Anyways, what I've tried next was setting the following build options:
FLTK_USE_LIBDECOR_GTK=OFF
FLTK_USE_SYSTEM_LIBDECOR=OFF
With this build everything is working now, the hello world code and my real app I'm currently working on as well. The window decorations look a little bit different than with my systems libdecor, but I can live with that.
Thank you and have a nice weekend!
Chris
Then I built the example apps that are in the repo and made an interesting discovery. All of them also crashed in the same way except glpuzzle and sudoku, they run and display window decorations! What makes these two different I've yet to figure out.
Anyways, what I've tried next was setting the following build options:
FLTK_USE_LIBDECOR_GTK=OFF
FLTK_USE_SYSTEM_LIBDECOR=OFFWith this build everything is working now, the hello world code and my real app I'm currently working on as well. The window decorations look a little bit different than with my systems libdecor, but I can live with that.

I'm tempted to conclude that either Hyprland doesn't seem to be totally mature yet , or libdecor doesn't support Hyprland correctly:
- claims to support SSD but doesn't draw any titlebar;- partially hides the subwindow that libdecor creates around the main window. When in CSD mode, libdecor works creating a subwindowwhere the titlebar gets drawn and positioning it above the main window. It seems that either Hyprland doesn't obey libdecorinstructions that a surface and a subsurface above it are to be mapped, or libdecor doesn't talk correctly to Hyprland.This analysis indicates, in my view, that the sources of the issues are either in Hyprland or in libdecor, but not in FLTK.
Still wonder what our cmake configure is detecting - it sounds like Hyprland is asserting it supports SSD but then doesn't?
Ian