aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamino <dom32400@aol.com>2025-11-20 21:03:11 -0500
committerSimon Ser <contact@emersion.fr>2025-11-22 14:41:35 +0100
commit842ea067737934823ccdef9adb8fbec6481bc472 (patch)
treee4d044470149b0f6ef5117a57ee2e755c87e4e0a
parentb54d1205d866a0bbc3b00c511dace77aa7113160 (diff)
tree/view: check for null workspace output
Fixes #8950
-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;