From: John Lindgren Date: Mon, 18 Jul 2022 03:39:36 +0000 (-0400) Subject: resistance: Do not consider edges of disabled outputs X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=a0a5cf706e224b66182e3ca8f12c82ac7be54af3;p=proto%2Flabwc.git resistance: Do not consider edges of disabled outputs --- 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)