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

Function choose_socket

src/main.cpp:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static std::optional<std::string> choose_socket(wl_display *display)
150{
151 for (int i = 1; i <= 32; i++)
152 {
153 auto name = "wayland-" + std::to_string(i);
154 if (wl_display_add_socket(display, name.c_str()) >= 0)
155 {
156 return name;
157 }
158 }
159
160 return {};
161}
162
163static wf::config_backend_t *load_backend(const std::string& backend)
164{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected