MCPcopy Create free account
hub / github.com/Alexays/Waybar / handleOutputName

Method handleOutputName

src/client.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void waybar::Client::handleOutputName(void* data, struct zxdg_output_v1* /*xdg_output*/,
94 const char* name) {
95 auto* client = waybar::Client::inst();
96 try {
97 auto& output = client->getOutput(data);
98 output.name = name;
99 } catch (const std::exception& e) {
100 spdlog::warn("caught exception in zxdg_output_v1_listener::name: {}", e.what());
101 }
102}
103
104void waybar::Client::handleOutputDescription(void* data, struct zxdg_output_v1* /*xdg_output*/,
105 const char* description) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected