Bug 475090 - ExposeClass method selects the next window class when the window with the current focus is closed and the next window in line is from a different class
Summary: ExposeClass method selects the next window class when the window with the cur...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-present-windows (other bugs)
Version First Reported In: 6.2.5
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-01 12:15 UTC by Jim Jones
Modified: 2025-06-21 12:45 UTC (History)
3 users (show)

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


Attachments
showcase of original issue (1.19 MB, video/webm)
2025-05-31 14:54 UTC, Martin Bednar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Jones 2023-10-01 12:15:10 UTC
SUMMARY

ExposeClass method selects the next window class when the window with the current focus is closed and the next window in line is from a different class


STEPS TO REPRODUCE
1. open 3 terminal windows and one dolphin window
2. select terminal (current focus) and call ExposeClass
3. close terminal window
4. if the next window in line is dolphin, ExposeClass switches to dolphin (and only shows dolphin windows) instead of staying in the konsole window class until all konsole windows are closed

OBSERVED RESULT
ExposeClass switches to new windows class (if in line) when windows gets closed

EXPECTED RESULT
ExposeClass stays in the same class until all open window class windows are closed

SOFTWARE/OS VERSIONS
Operating System: Linux
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.5 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8365U CPU @ 1.60GHz
Memory: 38.8 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
Comment 1 Jim Jones 2023-10-01 17:18:25 UTC
i found a more reproducible way:

1. open 3 terminal windows and one dolphin window
2. focus aka click on the dolphin window
3. click on one of the terminal windows
4. call ExposeClass
5. close the terminal window that got clicked/focused in "3."
6. now the dolphin windows only is shown instead of the 2 still open terminal instances
Comment 2 Jim Jones 2024-09-21 12:41:10 UTC
still existing in 6.1.5

"Icons-and-Text Task Manager" works flawlessly when clicking on a grouped app item and 

"Clicking grouped task" is set to "Show large window previews" and "Combine into single button" i selected
Comment 3 Jim Jones 2025-01-11 14:00:26 UTC
still exists in 6.2.5
Comment 4 Martin Bednar 2025-05-31 14:54:53 UTC
Created attachment 181936 [details]
showcase of original issue

Still confirmed in 6.3.90.

Additional symptom:
1. open 1 konsole, 1 systemsettings. focus on systemsettings.
2. ctrl + f7
3. close presented systemsettings window

result:
Present windows shows konsole, escape button to exit effect doesn't work.

expected:
present window closes, focus on highes stacked window.
At least escape button working, to return to desktop with focus on highest stacked window.
Comment 5 Jim Jones 2025-06-21 12:45:46 UTC
bug still exists in plasma 6.4.0