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

Method init

plugins/scale/scale.cpp:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 bool active = false;
143
144 void init() override
145 {
146 hook_set = false;
147 grab = std::make_unique<wf::input_grab_t>(SCALE_TRANSFORMER, output, this, this, this);
148
149 allow_scale_zoom.set_callback(allow_scale_zoom_option_changed);
150
151 setup_workspace_switching();
152
153 drag_helper->connect(&on_drag_output_focus);
154 drag_helper->connect(&on_drag_done);
155 drag_helper->connect(&on_drag_snap_off);
156
157 show_title.init(output);
158 output->connect(&update_cb);
159 }
160
161 void setup_workspace_switching()
162 {

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
set_callbackMethod · 0.45

Tested by

no test coverage detected