Bug 404826

Summary: Windows display on multiple virtual desktops
Product: [Plasma] kwin Reporter: Sawyer Bergeron <sawyerbergeron>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, nate, sawyerbergeron
Priority: NOR    
Version First Reported In: 5.15.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=410084
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sawyer Bergeron 2019-02-26 03:16:01 UTC
SUMMARY
Window minimized on one virtual desktop can be made to display on multiple virtual desktops at once

STEPS TO REPRODUCE
1. Minimize window on desktop 1
2. switch to desktop 2
3. unminimize window
4. switch to desktop 1

OBSERVED RESULT
window appears on both desktop 1 and desktop 2

EXPECTED RESULT
window should only appear on desktop 2

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux 4.20.1, KDE 5.15.1
(available in About System)
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2019-03-01 03:24:52 UTC
We implemented virtual desktops differently on wayland letting a user put a window on more than one.

Though the exact behavioural patterns are not set in stone, please state why it should have removed from desktop 1.
Comment 2 Sawyer Bergeron 2019-03-01 17:37:29 UTC
I can't say it's objectively wrong to have this behavior, but implicitly pinning the window to multiple desktops is a significant shift from the behavior on X and doesn't seem immediately intuitive. I'd expect one of two things to happen with a default configuration: 

1) user minimizes window on the first desktop, reopens on another, and it remains minimized on the first (but can be expanded again) and is visible on the second. This scenario is what I personally find most intuitive (any combination of windows can be visible on any desktop, changing window minimize state on one desktop does not affect that window's minimize state on other desktops)

2) user minimizes window on the first desktop, attempts to reopen on another, desktop moves user to first desktop and expands window (current behavior on X)

Having the same window visible on multiple desktops is useful, but seems very odd as default behavior here. Having immediately invisible changes on desktops other than the current desktop feels, in my opinion, quite unintuitive.
Comment 3 Sawyer Bergeron 2019-03-02 20:46:35 UTC
I think my prior comment explains my thoughts fairly well, I just want to add that current behavior is slightly inconsistent depending on the state of the window on another desktop. If it is already open, then trying to open the task on a different desktop moves you over to the desktop it was originally on
Comment 4 Vlad Zahorodnii 2023-01-18 10:42:13 UTC
In 5.27, this behavior is configurable - window behavior, advanced tab, virtual desktop behavior combobox