diff options
author | emersion <[email protected]> | 2018-10-13 13:22:35 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-10-13 13:22:35 +0200 |
commit | 782a835175b1fecb427fbbafef4e7518af95329f (patch) | |
tree | 1b206c8e09ff9e084f92981e8d01b2aab8a5e42e /sway/tree/arrange.c | |
parent | b80cf982ae5151775a11a2b579eae41ffa9d3e14 (diff) | |
parent | 9190735947947f5afa21f725cfe0569abde946aa (diff) |
Merge pull request #2828 from RyanDwyer/fix-locked-map-crash
Fix crash when view maps while locked
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", |