aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 2c9cc290..725dedd2 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -315,7 +315,7 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
output->x = x;
}
- if (oc->background) {
+ if (oc && oc->background) {
int i;
for (i = 0; i < root_container.children->length; ++i) {
if (root_container.children->items[i] == output) {