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

Method input_pressed

plugins/single_plugins/resize.cpp:256–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 void input_pressed(uint32_t state)
257 {
258 if (state != WLR_BUTTON_RELEASED)
259 {
260 return;
261 }
262
263 input_grab->ungrab_input();
264 output->deactivate_plugin(&grab_interface);
265
266 if (view)
267 {
268 end_wobbly(view);
269
270 wf::view_change_workspace_signal workspace_may_changed;
271 workspace_may_changed.view = this->view;
272 workspace_may_changed.to = output->wset()->get_current_workspace();
273 workspace_may_changed.old_workspace_valid = false;
274 output->emit(&workspace_may_changed);
275 }
276 }
277
278 // Convert resize edges to gravity
279 uint32_t calculate_gravity()

Callers

nothing calls this directly

Calls 6

end_wobblyFunction · 0.85
ungrab_inputMethod · 0.80
deactivate_pluginMethod · 0.80
wsetMethod · 0.80
get_current_workspaceMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected