From a0a5cf706e224b66182e3ca8f12c82ac7be54af3 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Sun, 17 Jul 2022 23:39:36 -0400 Subject: [PATCH] resistance: Do not consider edges of disabled outputs --- src/resistance.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/resistance.c b/src/resistance.c index db19dbc6..96d4908e 100644 --- a/src/resistance.c +++ b/src/resistance.c @@ -61,6 +61,10 @@ resistance_move_apply(struct view *view, double *x, double *y) } wl_list_for_each(output, &server->outputs, link) { + if (!output->wlr_output->enabled) { + continue; + } + mgeom = output_usable_area_in_layout_coords(output); if (!wlr_box_intersection(&intersection, &vgeom, &mgeom) @@ -129,6 +133,10 @@ 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) { + continue; + } + mgeom = output_usable_area_in_layout_coords(output); if (!wlr_box_intersection(&intersection, &vgeom, &mgeom)