aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-27 18:46:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-27 18:46:40 +0000
commit9cfe7200006ba8f996f3a005993a78f1da0236e1 (patch)
tree7116abaf363c91b7070d29084932dd48d431935a /wayland.h
parentwayland: group handle_global() together with handle_global_removed() (diff)
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.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h1
1 files changed, 1 insertions, 0 deletions
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;