Returns the non-focused view in the case where there is only 1 view */
| 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 | { |
nothing calls this directly
no test coverage detected