diff options
| author | Damino <dom32400@aol.com> | 2025-11-20 21:03:11 -0500 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-11-22 14:41:35 +0100 |
| commit | 842ea067737934823ccdef9adb8fbec6481bc472 (patch) | |
| tree | e4d044470149b0f6ef5117a57ee2e755c87e4e0a | |
| parent | b54d1205d866a0bbc3b00c511dace77aa7113160 (diff) | |
tree/view: check for null workspace output
Fixes #8950
| -rw-r--r-- | sway/tree/view.c | 2 |
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; |
