Bug 448096 - [wayland] - minimizing and reopening windows causes window to be open on multiple virtual desktops at once
Summary: [wayland] - minimizing and reopening windows causes window to be open on mult...
Status: REPORTED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 22:32 UTC by Magnus Anderson
Modified: 2022-01-08 08:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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