~ruther/dwl

d14ee99661e420c8e3d8fcc6791429a0e08bd915 — Leonardo Hernández Hernández 2 years ago cd96f88
remove useless check of `m` in arrangelayers()

it is supossed to avoid a crash when we pass m=NULL as argument
however it would crash anyway and also because we should not pass m=NULL
1 files changed, 0 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +0 -2
@@ 596,8 596,6 @@ arrangelayers(Monitor *m)
		ZWLR_LAYER_SHELL_V1_LAYER_TOP,
	};
	LayerSurface *layersurface;
	if (!m || !m->wlr_output->enabled)
		return;

	/* Arrange exclusive surfaces from top->bottom */
	for (i = 3; i >= 0; i--)

Do not follow this link