aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-09-09 17:13:30 +0200
committerGuido Cella <guidocella91@gmail.com>2020-09-09 17:13:30 +0200
commit143dce094c14e9d3904ef7530f113c9a7e4ebe47 (patch)
treeaf1dabfc2918c8ed8a07f36f24e03ba73478b735 /dwl.c
parent62250661cf0b6441e4a4179dfb7e63bd164a55e5 (diff)
fix multi monitors further
Fix layer surfaces without an exculsive area by using the right x and y for the current monitor (by Stivvo).
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index a191f5e..91239ca 100644
--- a/dwl.c
+++ b/dwl.c
@@ -472,9 +472,7 @@ void
arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, bool exclusive)
{
LayerSurface *layersurface;
- struct wlr_box full_area = { 0 };
- wlr_output_effective_resolution(m->wlr_output,
- &full_area.width, &full_area.height);
+ struct wlr_box full_area = *wlr_output_layout_get_box(output_layout, m->wlr_output);
wl_list_for_each(layersurface, list, link) {
struct wlr_layer_surface_v1 *wlr_layer_surface = layersurface->layer_surface;