aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 3d621124..be813be9 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -307,7 +307,7 @@ void view_autoconfigure(struct sway_view *view) {
}
struct sway_output *output = ws ? ws->output : NULL;
- if (con->pending.fullscreen_mode == FULLSCREEN_WORKSPACE) {
+ if (output && con->pending.fullscreen_mode == FULLSCREEN_WORKSPACE) {
con->pending.content_x = output->lx;
con->pending.content_y = output->ly;
con->pending.content_width = output->width;