Skip to content

Allow creating new windows on another virtual desktop#19458

Merged
DHowett merged 1 commit intomainfrom
dev/lhecker/18652-virtual-desktop
Oct 21, 2025
Merged

Allow creating new windows on another virtual desktop#19458
DHowett merged 1 commit intomainfrom
dev/lhecker/18652-virtual-desktop

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Oct 15, 2025

Whoops. Closes #18652

@lhecker lhecker force-pushed the dev/lhecker/18652-virtual-desktop branch from 0409c25 to 37bc6ed Compare October 15, 2025 12:23
const auto mostRecent = mostRecentWeak.lock();
auto window = mostRecent.get();

if (!window)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DHowett The fix is that this if-condition is gone. If the currentDesktop was acquired we must yield a window = nullptr if no window exists on the current desktop. This if-condition however will assign the most recent window.

@DHowett DHowett merged commit 5ae95d7 into main Oct 21, 2025
19 checks passed
@DHowett DHowett deleted the dev/lhecker/18652-virtual-desktop branch November 20, 2025 19:47
DHowett pushed a commit that referenced this pull request Nov 24, 2025
Whoops. Closes #18652

<DHowett> I chatted with Leonard to figure out why I kept
misunderstanding this PR. The key is that **this function should not
always return an existing window.** It's supposed to find an existing
window on the current virtual desktop, not literally any window
anywhere.

(cherry picked from commit 5ae95d7)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgYvdmA
Service-Version: 1.23
DHowett pushed a commit that referenced this pull request Nov 24, 2025
Whoops. Closes #18652

<DHowett> I chatted with Leonard to figure out why I kept
misunderstanding this PR. The key is that **this function should not
always return an existing window.** It's supposed to find an existing
window on the current virtual desktop, not literally any window
anywhere.

(cherry picked from commit 5ae95d7)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgf7tqY
Service-Version: 1.24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Attach to the most recently used window on this desktop" continues to open in instance on other desktop

2 participants