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

Method init

plugins/single_plugins/wsets.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30{
31 public:
32 void init() override
33 {
34 method_repository->register_method("wsets/set-output-wset", set_output_wset);
35 method_repository->register_method("wsets/send-view-to-wset", send_view_to_wset);
36 setup_bindings();
37 wf::get_core().output_layout->connect(&on_new_output);
38 for (auto& wo : wf::get_core().output_layout->get_outputs())
39 {
40 available_sets[wo->wset()->get_index()] = wo->wset();
41 }
42 }
43
44 void fini() override
45 {

Callers

nothing calls this directly

Calls 5

register_methodMethod · 0.80
connectMethod · 0.80
get_indexMethod · 0.80
wsetMethod · 0.80
get_outputsMethod · 0.45

Tested by

no test coverage detected