Bug 448096

Summary: [wayland] - minimizing and reopening windows causes window to be open on multiple virtual desktops at once
Product: [Unmaintained] lattedock Reporter: Magnus Anderson <todamath>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Magnus Anderson 2022-01-07 22:32:35 UTC
SUMMARY
The general idea is I have a window open on Virtual Desktop 1.
Minimize it.
Switch to Desktop 2 (ctrl+F2).
I click on the icon in Latte-Dock to open the window.

Behavior on X11: We switch back to Virtual Desktop 1 and return the window to its state before minimizing.

Behavior on Wayland: We stay on Virtual Desktop 2 and open the window on Virtual Desktop 2. However, switching to Virtual Desktop 1 shows that the window is *also open* on Virtual Desktop 1. Minimizing it now on either desktop minimizes it on both, and reopening on either opens it on both.

Expected behavior: Either conform to what happens on X11, or (I personally would prefer) opening it on Virtual Desktop 2 only, (if it has been minimized on Virtual Desktop 1 - this offers an easy way to move windows across desktops). I think consistency across X11 and Wayland is probably more important than my single preference here though

May be a bug in Kwin in general. I don't know how to open default KDE in Garuda to try, but this is very easy to reproduce so hopefully someone else can confirm.

STEPS TO REPRODUCE
0. Open Plasma Wayland session
1. ctrl+f1 to make sure you're on Virtual Desktop 1
2. Open a window
3. Minimize the window
4. ctrl+f2 to switch to Virtual Desktop 2
5. Click in latte-dock to maximize previously-opened window

OBSERVED RESULT
Press ctrl+f1. Notice that the window is open in both

EXPECTED RESULT
Window is only open in either Virtual Desktop 1 or Virtual Desktop 2

SOFTWARE/OS VERSIONS
Operating System: Garuda Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.13-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 11.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics

ADDITIONAL INFORMATION
I can try to fix this if people can give me information about how to open a debugging version of latte-dock and/or KWin. I find it very irritating
Comment 1 Michail Vourlakos 2022-01-08 08:59:40 UTC
I remember that there was a relevant wayland fix for upcoming plasma 5.24 that will also fix latte taskmanager behavior...
nonetheless that patch should also be applied to latte internal wm:waylandinterface functions