MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / wayfire_shell_create

Function wayfire_shell_create

plugins/protocols/wayfire-shell.cpp:458–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456};
457
458wayfire_shell *wayfire_shell_create(wl_display *display)
459{
460 wayfire_shell *ws = new wayfire_shell;
461
462 ws->shell_manager = wl_global_create(display,
463 &zwf_shell_manager_v2_interface, 2, NULL, bind_zwf_shell_manager);
464
465 if (ws->shell_manager == NULL)
466 {
467 LOGE("Failed to create wayfire_shell interface");
468 delete ws;
469
470 return NULL;
471 }
472
473 return ws;
474}
475
476class wayfire_shell_protocol_impl : public wf::plugin_interface_t
477{

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected