output: Add output_is_usable() helper

This commit is contained in:
John Lindgren 2023-02-16 12:24:27 -05:00
parent fe7edf82d9
commit 6efc6a9db4
5 changed files with 20 additions and 18 deletions

View file

@ -62,7 +62,7 @@ resistance_move_apply(struct view *view, double *x, double *y)
}
wl_list_for_each(output, &server->outputs, link) {
if (!output->wlr_output->enabled) {
if (!output_is_usable(output)) {
continue;
}
@ -132,7 +132,7 @@ resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo)
return;
}
wl_list_for_each(output, &server->outputs, link) {
if (!output->wlr_output->enabled) {
if (!output_is_usable(output)) {
continue;
}