aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-14 13:19:21 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-14 13:19:21 -0500
commit83ddd2d9dbee1b77993f5cc45427854e18aae6f1 (patch)
treef2ec5fbc8b47b66f85978aa7feb1a09e34aaf569 /sway/tree
parentrender wl-shell and xwayland views (diff)
downloadsway-83ddd2d9dbee1b77993f5cc45427854e18aae6f1.tar.gz
sway-83ddd2d9dbee1b77993f5cc45427854e18aae6f1.tar.zst
sway-83ddd2d9dbee1b77993f5cc45427854e18aae6f1.zip
render override redirect
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c2
-rw-r--r--sway/tree/layout.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 862406cf..d241f69a 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -207,7 +207,7 @@ swayc_t *destroy_output(swayc_t *output) {
207} 207}
208 208
209swayc_t *destroy_view(swayc_t *view) { 209swayc_t *destroy_view(swayc_t *view) {
210 if (!sway_assert(view, "null view passed to destroy_view")) { 210 if (!view) {
211 return NULL; 211 return NULL;
212 } 212 }
213 wlr_log(L_DEBUG, "Destroying view '%s'", view->name); 213 wlr_log(L_DEBUG, "Destroying view '%s'", view->name);
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 13b8a395..01535f2d 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -51,6 +51,7 @@ void init_layout(void) {
51 51
52 root_container.sway_root = calloc(1, sizeof(*root_container.sway_root)); 52 root_container.sway_root = calloc(1, sizeof(*root_container.sway_root));
53 root_container.sway_root->output_layout = wlr_output_layout_create(); 53 root_container.sway_root->output_layout = wlr_output_layout_create();
54 wl_list_init(&root_container.sway_root->unmanaged_views);
54 55
55 root_container.sway_root->output_layout_change.notify = 56 root_container.sway_root->output_layout_change.notify =
56 output_layout_change_notify; 57 output_layout_change_notify;