reuse m->m
parent
1473d03293
commit
03c020f058
5
dwl.c
5
dwl.c
|
@ -547,7 +547,7 @@ arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, bool
|
||||||
void
|
void
|
||||||
arrangelayers(Monitor *m)
|
arrangelayers(Monitor *m)
|
||||||
{
|
{
|
||||||
struct wlr_box usable_area = { 0 };
|
struct wlr_box usable_area = m->m;
|
||||||
uint32_t layers_above_shell[] = {
|
uint32_t layers_above_shell[] = {
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY,
|
ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY,
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
|
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
|
||||||
|
@ -555,9 +555,6 @@ arrangelayers(Monitor *m)
|
||||||
size_t nlayers = LENGTH(layers_above_shell);
|
size_t nlayers = LENGTH(layers_above_shell);
|
||||||
LayerSurface *layersurface, *topmost = NULL;
|
LayerSurface *layersurface, *topmost = NULL;
|
||||||
|
|
||||||
wlr_output_effective_resolution(m->wlr_output,
|
|
||||||
&usable_area.width, &usable_area.height);
|
|
||||||
|
|
||||||
// Arrange exclusive surfaces from top->bottom
|
// Arrange exclusive surfaces from top->bottom
|
||||||
arrangelayer(m, &m->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
arrangelayer(m, &m->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
||||||
&usable_area, true);
|
&usable_area, true);
|
||||||
|
|
Loading…
Reference in New Issue