diff options
author | 2018-07-25 08:27:40 -0400 | |
---|---|---|
committer | 2018-07-25 08:27:40 -0400 | |
commit | fc718f629af231f8a0ae795b2f7529e213cab183 (patch) | |
tree | 7917aadbfb09d02d3d60045f0ba8d5028f0c4bb4 /sway/tree/layout.c | |
parent | Merge pull request #2354 from RyanDwyer/fix-crash-on-tab-reap (diff) | |
parent | more style fixes, reorder config.h include (diff) | |
download | sway-fc718f629af231f8a0ae795b2f7529e213cab183.tar.gz sway-fc718f629af231f8a0ae795b2f7529e213cab183.tar.zst sway-fc718f629af231f8a0ae795b2f7529e213cab183.zip |
Merge pull request #2350 from ppascher/xwayland-optional
Added meson option to allow building sway without xwayland support
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index a2be0ef3..2b3263f8 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <string.h> | 6 | #include <string.h> |
7 | #include <wlr/types/wlr_output.h> | 7 | #include <wlr/types/wlr_output.h> |
8 | #include <wlr/types/wlr_output_layout.h> | 8 | #include <wlr/types/wlr_output_layout.h> |
9 | #include "config.h" | ||
9 | #include "sway/debug.h" | 10 | #include "sway/debug.h" |
10 | #include "sway/tree/arrange.h" | 11 | #include "sway/tree/arrange.h" |
11 | #include "sway/tree/container.h" | 12 | #include "sway/tree/container.h" |
@@ -39,7 +40,9 @@ void layout_init(void) { | |||
39 | root_container.sway_root = calloc(1, sizeof(*root_container.sway_root)); | 40 | root_container.sway_root = calloc(1, sizeof(*root_container.sway_root)); |
40 | root_container.sway_root->output_layout = wlr_output_layout_create(); | 41 | root_container.sway_root->output_layout = wlr_output_layout_create(); |
41 | wl_list_init(&root_container.sway_root->outputs); | 42 | wl_list_init(&root_container.sway_root->outputs); |
43 | #ifdef HAVE_XWAYLAND | ||
42 | wl_list_init(&root_container.sway_root->xwayland_unmanaged); | 44 | wl_list_init(&root_container.sway_root->xwayland_unmanaged); |
45 | #endif | ||
43 | wl_list_init(&root_container.sway_root->drag_icons); | 46 | wl_list_init(&root_container.sway_root->drag_icons); |
44 | wl_signal_init(&root_container.sway_root->events.new_container); | 47 | wl_signal_init(&root_container.sway_root->events.new_container); |
45 | root_container.sway_root->scratchpad = create_list(); | 48 | root_container.sway_root->scratchpad = create_list(); |