Moving a workspace to another monitor skips a free number because of Hyprland's temporary workspace
System details
AMD Ryzen 9 7950X, NVIDIA RTX 4070 + AMD Radeon 610M, Omarchy 4.5.0-3, Hyprland 0.56.2, Quickshell 0.3.2.r7.g2b4501a-1. Two monitors: DP-2 on the left (block 1-10) and DP-3 on the right (block 11-20).
What's wrong?
Moving a workspace to a monitor whose matching number is taken skips the lowest free number.
Steps to recreate
- Keep a window on left workspace 1, with left 2 empty.
- Put a window on right workspace 1 (id 11) and focus it.
- Press Super + Shift + Alt + Left.
Expected: the workspace becomes left 2, the first free slot, as the comment on adopt() describes.
Actual: it becomes left 3.
Evidence
Hyprland events from the move, filtered to workspace events:
16:10:01.446 createworkspace>>2
16:10:01.446 moveworkspace>>11,DP-2
16:10:01.447 changeworkspaceid>>11,3
16:10:01.447 createworkspace>>11
16:10:01.447 destroyworkspace>>2
Likely cause
In move_to_monitor in default/hypr/monitor-workspaces.lua, moving the workspace leaves Hyprland to fill the gap with a new workspace on the lowest free number. adopt() then treats that number as taken. settle() only moves the old monitor off it afterward.
Calling settle() before adopt() may fix it, but I haven't tested that. #16349 fixes a similar placeholder problem, but only in restore().
I read the report and the workspace-move code on current quattro: move_to_monitor() still calls adopt() before settle(). I have not reproduced the numbering jump on a worker.
My classification is bug, but the classification reviewer returned no usable answer, so the classification remains unsettled. No labels or fix were applied; this is waiting for maintainer triage. The source review was by GPT-6 in Codex (reasoning effort not exposed by this session); no second opinion on the diagnosis ran.
PR #17776 addresses this report and already includes the closing link. I checked its diff against current quattro (233732b0): adopt() counts the temporary workspace as taken before settle() releases it, matching the reported 11 → 3 sequence. The PR settles the vacated monitor before choosing the destination number.
GPT-6 in Codex (reasoning effort not exposed), Opus 5.5 High, and muse-wonder via pi (thinking high) checked the source. The two reviewers agreed with this reading; independence is not guaranteed. No worker reproduction or tests ran in this issue session. This issue is waiting on #17776; runtime verification and the maintainer's decision remain with that pull request.