Files
i3/testcases
Orestis Floros 71dd66f3d9 cmd_floating: Fix crash when running empty workspace (#6563)
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
2025-12-22 08:43:52 +01:00
..
2014-12-10 20:42:52 +01:00