diff options
| author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-10-13 18:08:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-13 18:08:23 -0400 |
| commit | 02aeb0f0bec90f87acbdbce41d34109b26e9dc5d (patch) | |
| tree | 874a3157f2778518a87009c35b47de9d5451b257 /sway/tree/arrange.c | |
| parent | 36d9037f2c419756b00d1fe2dbeefca278bc2799 (diff) | |
| parent | 782a835175b1fecb427fbbafef4e7518af95329f (diff) | |
| download | sway-02aeb0f0bec90f87acbdbce41d34109b26e9dc5d.tar.xz | |
Merge branch 'master' into fix_edge_gaps
Diffstat (limited to 'sway/tree/arrange.c')
| -rw-r--r-- | sway/tree/arrange.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index 373460a2..852d53bf 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -180,6 +180,10 @@ void arrange_workspace(struct sway_workspace *workspace) { if (config->reloading) { return; } + if (!workspace->output) { + // Happens when there are no outputs connected + return; + } struct sway_output *output = workspace->output; struct wlr_box *area = &output->usable_area; wlr_log(WLR_DEBUG, "Usable area for ws: %dx%d@%d,%d", |
