fix multi monitors further

Fix layer surfaces without an exculsive area by using the right x and y
for the current monitor (by Stivvo).
This commit is contained in:
Guido Cella 2020-09-09 17:13:30 +02:00
parent 62250661cf
commit 143dce094c

4
dwl.c
View File

@ -472,9 +472,7 @@ void
arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, bool exclusive) arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, bool exclusive)
{ {
LayerSurface *layersurface; LayerSurface *layersurface;
struct wlr_box full_area = { 0 }; struct wlr_box full_area = *wlr_output_layout_get_box(output_layout, m->wlr_output);
wlr_output_effective_resolution(m->wlr_output,
&full_area.width, &full_area.height);
wl_list_for_each(layersurface, list, link) { wl_list_for_each(layersurface, list, link) {
struct wlr_layer_surface_v1 *wlr_layer_surface = layersurface->layer_surface; struct wlr_layer_surface_v1 *wlr_layer_surface = layersurface->layer_surface;