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

Method get_visible_workspaces

plugins/common/workspace-wall.cpp:411–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411std::vector<wf::point_t> workspace_wall_t::get_visible_workspaces(
412 wf::geometry_t viewport) const
413{
414 std::vector<wf::point_t> visible;
415 auto wsize = output->wset()->get_workspace_grid_size();
416 for (int i = 0; i < wsize.width; i++)
417 {
418 for (int j = 0; j < wsize.height; j++)
419 {
420 if (viewport & get_workspace_rectangle({i, j}))
421 {
422 visible.push_back({i, j});
423 }
424 }
425 }
426
427 return visible;
428}
429} // namespace wf

Callers

nothing calls this directly

Calls 2

wsetMethod · 0.80

Tested by

no test coverage detected