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

Method remove_view

plugins/scale/scale.cpp:428–446  ·  view source on GitHub ↗

Remove transformer from view and remove view from the scale_data map */

Source from the content-addressed store, hash-verified

426
427 /* Remove transformer from view and remove view from the scale_data map */
428 void remove_view(wayfire_toplevel_view view)
429 {
430 if (!view || !scale_data.count(view))
431 {
432 return;
433 }
434
435 if (scale_data.at(view).was_minimized)
436 {
437 wf::scene::set_node_enabled(view->get_root_node(), false);
438 }
439
440 for (auto v : view->enumerate_views(false))
441 {
442 check_focus_view(v);
443 pop_transformer(v);
444 scale_data.erase(v);
445 }
446 }
447
448 /* Process button event */
449 void process_input(uint32_t button, uint32_t state, wf::pointf_t input_position)

Callers 3

send_window_toMethod · 0.45
handle_ipc_set_layoutFunction · 0.45
move_tiled_viewMethod · 0.45

Calls 2

set_node_enabledFunction · 0.85
enumerate_viewsMethod · 0.80

Tested by

no test coverage detected