| 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 | { |
nothing calls this directly
no test coverage detected