Bug 464494

Summary: Zorder of all windows and menus get broken
Product: [Plasma] kwin Reporter: dft <dieseltrike>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: nate, xaver.hugl
Priority: NOR    
Version: 5.26.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description dft 2023-01-19 09:20:59 UTC
SUMMARY
I use  (Sierra Charts free download) in Bottles (Does the same with PlayOnLinux fwiw). These open on another activity. When switching between the activities my Windows which show as forground aren't actually receiving focus, instead the app behind it (which you can't see) receives focus. This then affects items like context menus too, whereby right clicking in dolphin will mean it's context menu is BEHIND Dolphin. Sometimes changing the activity and going back temporarily fixes it. Basically the active window is sent to the back but can receive imput. Closing the Wine Apps and changing activities a few times fixes this bug. 


STEPS TO REPRODUCE
1. Download Sierra Chart or some Windows application that allows multiple windows - OUTSIDE of the APP ie SDI.
2. Open app on another activity
3. Switch between the activities, open Brave, Dolphin etc and the foreground app won't receive input.

OBSERVED RESULT
ZOrder with overall desktop gets messed up. ie Clicking On Telegram on the taskbar will bring a background app to the foreground, yet typing will actually happen in Telegram even though it's behind another app

EXPECTED RESULT
Active / Foreground app should be in focus. Zordering appears to get skewed. It appears to have something to do with Activities and Wine apps. I haven't tested on other Wine Apps. It used to work fine around Plasma 5.23ish. It broke around 5.25.

SOFTWARE/OS VERSIONS
Windows: Bottles 50.1
Linux/KDE Plasma: Arch Linux KDE
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Tested on Gnome and DEEPIN on the same Linux installation, Zorder works fine while Sierra is open with those DE's.
Comment 1 Zamundaaa 2023-01-23 23:21:21 UTC
Are you using the "Slide Back" effect?
Comment 2 dft 2023-01-24 06:40:35 UTC
(In reply to Zamundaaa from comment #1)
> Are you using the "Slide Back" effect?

Yes it is enabled - I assume you want me to to disable it and try? I will do so.
Comment 3 Zamundaaa 2023-01-24 14:27:16 UTC

*** This bug has been marked as a duplicate of bug 455429 ***
Comment 4 dft 2023-01-25 09:27:18 UTC
(In reply to Zamundaaa from comment #1)
> Are you using the "Slide Back" effect?

So I have had 2 days to test. You are 100% right. The slide back effect causes this bug. For now I have enabled a KwinRule to disable compositing when my app is open. Would be great if KwinRules could disable effects.