I am currently building a pure Wayland Application (my target platform is Ubuntu 24), Mutter does not seem to support SSD: server side decoration . I am trying to use libdecor but for some reason the application exits. My code looks like this:
wl_surface_commit(mystate.surface); //must commit everything before the loop
struct wl_callback *cb = wl_surface_frame(mystate.surface);
wl_callback_add_listener(cb, &callbackoutputlistener, &mystate);
auto context = libdecor_new(display, &libdecor_iface);
mystate.decorframe = libdecor_decorate(context, mystate.surface,&libdecor_frame_iface, &mystate);
libdecor_frame_set_app_id(mystate.decorframe, "libdecor-demo");
libdecor_frame_set_title(mystate.decorframe, "libdecor demo");
libdecor_frame_map(mystate.decorframe);
libdecor_frame_set_min_content_size(mystate.decorframe, 1000, 1000);
//then the loop
while(…){}
If I dont use libdecom, then everything works fine