Bug 504410

Summary: When detecting window properties yakuake disappears
Product: [Applications] systemsettings Reporter: Jonathan Isom <jeisom>
Component: kcm_kwinrulesAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: isma.af, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.3.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jonathan Isom 2025-05-17 10:56:55 UTC
SUMMARY
In settings when using "Detect Window Properties" under "Window Rules" with a delay to bring Yakuake on screen, the activation of the selector hides the window with no way to bring it back up.  This worked fine on prior Plasma 6 versions.

STEPS TO REPRODUCE
1. In Yakuake make sure to disable "Keep Window open when it loses focus" needs to be set.
2. In a window rule, click detect Window Properties with a delay
3. Press hotkey to bring Yakuake up before delay ends

OBSERVED RESULT
Window disappears

EXPECTED RESULT
Ability to click window.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.90
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-273-linux-tkg (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 4080
Product Name: X570M Pro4
Comment 1 Ismael Asensio 2025-05-17 11:36:26 UTC
Can confirm also on master. This also happens for any window that closes when focus is lost, such as non-pinned applet popups.

An easy way to test is `qdbus org.kde.KWin /KWin org.kde.KWin.queryWindowInfo`, which is the same method the rules dialog calls for detecting window properties. 

This method is directly or indirectly making the active window lose focus, which causes the observed bug