From 9cfe7200006ba8f996f3a005993a78f1da0236e1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 27 Apr 2020 20:46:40 +0200 Subject: wayland: handle outputs disappearing That is, deal with monitors being unplugged. At least on Sway 1.4, surfaces are not unmapped before the output is removed. Thus, in addition to free:ing the monitor resources, we also need to update all terminals that are mapped on this output - remove the output from their "mapped on" list. --- wayland.h | 1 + 1 file changed, 1 insertion(+) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index a550b247..60f39454 100644 --- a/wayland.h +++ b/wayland.h @@ -20,6 +20,7 @@ struct monitor { struct wl_output *output; struct zxdg_output_v1 *xdg; char *name; + uint32_t wl_name; int x; int y; -- cgit v1.3