Add int workspace to WWindow so Wayland-managed windows (which have no WFrameWindow and therefore no frame->workspace slot) can track their workspace assignment. Set wwin->workspace = workspace in the Wayland branch of wManageWindow alongside the existing geometry recording. Guard wWorkspaceForceChange against NULL frame dereferences: introduce a tmp_workspace local that falls back to tmp->workspace when frame is NULL, and protect the omnipresent workspace assignment the same way. Also add a NULL guard for tmp->icon->core in the miniwindow-unmap path. This prevents NULL dereferences if workspace switching is triggered (e.g., via a root-menu action) while Wayland windows are managed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| test_geom.c | ||
| test_x11_event.c | ||
| wl-smoke-test.sh | ||
| x11-smoke-test.sh | ||