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

Method get_unfocused_view

plugins/single_plugins/switcher.cpp:867–879  ·  view source on GitHub ↗

Returns the non-focused view in the case where there is only 1 view */

Source from the content-addressed store, hash-verified

865
866/* Returns the non-focused view in the case where there is only 1 view */
867 wayfire_toplevel_view get_unfocused_view()
868 {
869 for (auto& sv : views)
870 {
871 if (!view_expired(sv.position) &&
872 (sv.position != SWITCHER_POSITION_CENTER))
873 {
874 return sv.view;
875 }
876 }
877
878 return nullptr;
879 }
880
881 void fill_empty_slot(const int empty_slot)
882 {

Callers

nothing calls this directly

Calls 1

view_expiredFunction · 0.85

Tested by

no test coverage detected