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

Method finalize

plugins/scale/scale.cpp:1406–1435  ·  view source on GitHub ↗

Completely end scale, including animation */

Source from the content-addressed store, hash-verified

1404
1405 /* Completely end scale, including animation */
1406 void finalize()
1407 {
1408 if (active)
1409 {
1410 /* only emit the signal if deactivate() was not called before */
1411 scale_end_signal signal;
1412 output->emit(&signal);
1413
1414 if (drag_helper->view)
1415 {
1416 drag_helper->handle_input_released();
1417 }
1418 }
1419
1420 active = false;
1421
1422 unset_hook();
1423 remove_transformers();
1424 scale_data.clear();
1425 grab->ungrab_input();
1426 on_view_mapped.disconnect();
1427 view_minimized.disconnect();
1428 workspace_changed.disconnect();
1429 workarea_changed.disconnect();
1430 view_geometry_changed.disconnect();
1431 output->deactivate_plugin(&grab_interface);
1432
1433 wf::scene::update(wf::get_core().scene(),
1434 wf::scene::update_flag::INPUT_STATE);
1435 }
1436
1437 /* Utility hook setter */
1438 void set_hook()

Callers

nothing calls this directly

Calls 7

updateFunction · 0.85
handle_input_releasedMethod · 0.80
ungrab_inputMethod · 0.80
deactivate_pluginMethod · 0.80
emitMethod · 0.45
clearMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected