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

Method handle_view_removed

plugins/single_plugins/switcher.cpp:262–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 };
261
262 void handle_view_removed(wayfire_toplevel_view view)
263 {
264 // not running at all, don't care
265 if (!output->is_plugin_active(grab_interface.name))
266 {
267 return;
268 }
269
270 bool need_action = false;
271 for (auto& sv : views)
272 {
273 need_action |= (sv.view == view);
274 }
275
276 // don't do anything if we're not using this view
277 if (!need_action)
278 {
279 return;
280 }
281
282 if (active)
283 {
284 arrange();
285 } else
286 {
287 cleanup_views([=] (SwitcherView& sv)
288 { return sv.view == view; });
289 }
290 }
291
292 bool handle_switch_request(int dir)
293 {

Callers

nothing calls this directly

Calls 1

is_plugin_activeMethod · 0.80

Tested by

no test coverage detected