aboutsummaryrefslogtreecommitdiff
path: root/include/sway/server.h
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-23 16:24:11 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-23 16:24:11 +1000
commit38398e2d77d57dc06b67ec88a54091c897915602 (patch)
treec80935807865fd96ab7d037070287d4dfaba1863 /include/sway/server.h
parent1c89f32533534f6e78c81c95578f40df45bb9016 (diff)
Implement atomic layout updates for tree operations
This implements atomic layout updates for when views map, reparent or unmap.
Diffstat (limited to 'include/sway/server.h')
-rw-r--r--include/sway/server.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 65d96e7a..f5f88a5a 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -12,6 +12,7 @@
#include <wlr/render/wlr_renderer.h>
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
+#include "list.h"
struct sway_server {
struct wl_display *wl_display;
@@ -43,6 +44,12 @@ struct sway_server {
struct wlr_wl_shell *wl_shell;
struct wl_listener wl_shell_surface;
+
+ bool terminating;
+
+ // When a view is being destroyed and is waiting for a transaction to
+ // complete it will be stored here.
+ list_t *destroying_containers;
};
struct sway_server server;