tree/view: check for null workspace output

Fixes #8950
This commit is contained in:
Damino 2025-11-20 21:03:11 -05:00 committed by Simon Ser
parent b54d1205d8
commit 842ea06773

View file

@ -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;