mirror of
https://github.com/i3/i3.git
synced 2026-02-04 23:25:33 +00:00
When running 'floating toggle' (or enable/disable) on an empty workspace, the focused container is the workspace itself, which has window=NULL. The command would call run_assignments(workspace->window), which would pass NULL to match_matches_window(), causing a crash when trying to access window->id. Add a NULL check at the beginning of `run_assignments` to immediately skip assignments for that case. Fixes: #6561