aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-23 16:24:11 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-23 16:24:11 +1000
commit38398e2d77d57dc06b67ec88a54091c897915602 (patch)
treec80935807865fd96ab7d037070287d4dfaba1863 /sway/server.c
parentPreserve buffers during transactions (diff)
downloadsway-38398e2d77d57dc06b67ec88a54091c897915602.tar.gz
sway-38398e2d77d57dc06b67ec88a54091c897915602.tar.zst
sway-38398e2d77d57dc06b67ec88a54091c897915602.zip
Implement atomic layout updates for tree operations
This implements atomic layout updates for when views map, reparent or unmap.
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index 824b1d8e..a13f2c3a 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -19,6 +19,7 @@
19#include <wlr/util/log.h> 19#include <wlr/util/log.h>
20// TODO WLR: make Xwayland optional 20// TODO WLR: make Xwayland optional
21#include <wlr/xwayland.h> 21#include <wlr/xwayland.h>
22#include "list.h"
22#include "sway/config.h" 23#include "sway/config.h"
23#include "sway/input/input-manager.h" 24#include "sway/input/input-manager.h"
24#include "sway/server.h" 25#include "sway/server.h"
@@ -105,6 +106,8 @@ bool server_init(struct sway_server *server) {
105 return false; 106 return false;
106 } 107 }
107 108
109 server->destroying_containers = create_list();
110
108 input_manager = input_manager_create(server); 111 input_manager = input_manager_create(server);
109 return true; 112 return true;
110} 113}
@@ -112,6 +115,7 @@ bool server_init(struct sway_server *server) {
112void server_fini(struct sway_server *server) { 115void server_fini(struct sway_server *server) {
113 // TODO: free sway-specific resources 116 // TODO: free sway-specific resources
114 wl_display_destroy(server->wl_display); 117 wl_display_destroy(server->wl_display);
118 list_free(server->destroying_containers);
115} 119}
116 120
117void server_run(struct sway_server *server) { 121void server_run(struct sway_server *server) {