Bug 468604

Summary: WindowHeap-based effects don't respect apps' "current monitor" properly
Product: [Plasma] kwin Reporter: dft <dieseltrike>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, postix
Priority: NOR Keywords: multiscreen
Version First Reported In: 5.27.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: All apps only have one instance yet some are dupped.

Description dft 2023-04-17 09:36:13 UTC
SUMMARY
***
Overview / desktop-grid and present windows do not respect multi monitors apps consistently. It appears to be limited to browsers like FireFox and Brave, Thunderbird, sometimes even Dolphin appears duplicated. This means that using any of these effects incorrectly duplicates the previews on all monitors not only the ones they are actually on.
***


STEPS TO REPRODUCE
1. Open FF and Brave, Thunderbird
2. Open settings, Telegram, Krusader or some other  app
3.  Activate any of the desktop overview type effects

OBSERVED RESULT
As attached, the browsers and sometimes Gwenview, Dolphin are duplicated on all monitors yet settings, telegram and others are shown on their respective monitors as it should be.

EXPECTED RESULT
Apps open on monitor 1 should appear only on monitor 1, Apps should only appear on the monitors they are actually currently on not duplicated across others.

SOFTWARE/OS VERSIONS
Operating System: ArcoLinux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.11-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C91
System Version: 2.0
Comment 1 dft 2023-04-17 09:37:37 UTC
Created attachment 158160 [details]
All apps only have one instance yet some are dupped.
Comment 2 Nate Graham 2023-04-17 16:58:45 UTC
Are any of those windows/apps configured to appear on multiple virtual desktops?
Comment 3 dft 2023-04-20 08:55:31 UTC
(In reply to Nate Graham from comment #2)
> Are any of those windows/apps configured to appear on multiple virtual
> desktops?

No the apps don't have any "special" settings. Infact one test I did was to open more windows and then close Gwenview. When I reopened Gwenview it only appeared on mon1. Closed and reopened again appears on both.  At first I thought it was a GTK issue but Gwenview I would assume is QT.
Comment 4 dft 2023-04-20 08:55:59 UTC
(In reply to dft from comment #3)
> (In reply to Nate Graham from comment #2)
> > Are any of those windows/apps configured to appear on multiple virtual
> > desktops?
> 
> No the apps don't have any "special" settings. Infact one test I did was to
> open more windows and then close Gwenview. When I reopened Gwenview it only
> appeared on mon1. Closed and reopened again appears on both.  At first I
> thought it was a GTK issue but Gwenview I would assume is QT.

This is on both Wayland and X11 fwiw
Comment 5 Nate Graham 2023-04-20 15:18:14 UTC
Thanks for the info. Cannot reproduce the issue. :/
Comment 6 postix 2024-05-23 10:32:26 UTC
Can you still reproduce it under Plasma 6?
Comment 7 Bug Janitor Service 2024-06-07 03:46:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-06-22 03:47:57 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!