mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Implement atomic layout updates for tree operations
This implements atomic layout updates for when views map, reparent or unmap.
This commit is contained in:
parent
1c89f32533
commit
38398e2d77
18 changed files with 545 additions and 389 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include <wlr/util/log.h>
|
||||
// TODO WLR: make Xwayland optional
|
||||
#include <wlr/xwayland.h>
|
||||
#include "list.h"
|
||||
#include "sway/config.h"
|
||||
#include "sway/input/input-manager.h"
|
||||
#include "sway/server.h"
|
||||
|
|
@ -105,6 +106,8 @@ bool server_init(struct sway_server *server) {
|
|||
return false;
|
||||
}
|
||||
|
||||
server->destroying_containers = create_list();
|
||||
|
||||
input_manager = input_manager_create(server);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -112,6 +115,7 @@ bool server_init(struct sway_server *server) {
|
|||
void server_fini(struct sway_server *server) {
|
||||
// TODO: free sway-specific resources
|
||||
wl_display_destroy(server->wl_display);
|
||||
list_free(server->destroying_containers);
|
||||
}
|
||||
|
||||
void server_run(struct sway_server *server) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue