Bug 352930

Summary: Alt+Tab and shaded windows
Product: [Plasma] kwin Reporter: Ben Martin <monkeyiq>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: kde.org
Priority: NOR    
Version First Reported In: 5.3.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: qdbus org.kde.KWin /KWin supportInformation

Description Ben Martin 2015-09-20 02:40:46 UTC
Alt+Tab seems to interact with shaded windows instead of just switching between two most recent windows.

If I have 3 windows open and alt+tab then release I switch to the previously active window. alt+tab again switches back to the window I had active. I can do this many times and the 3rd window will not activate as expected.

Then if I shade the 3rd window then click to focus window 1 then window 2 and start again. Instead of switching between window 1 and window 2 I find that window 3 will unshade and sometimes appear to remain unshaded.
Comment 1 Thomas Lübking 2015-09-20 06:19:52 UTC
Alt+tab will switch to and when activating implicitly unshade windows. That's expected.

However, if you use "recently used" as sort order in "kcmshell5 kwintabbox", the 3rd window should not (and isn't here) be ever addressed - shaded, minimized, or whatever state (while "stacking order" would move to the lowest window first, not sure whether that's actually intended, but would in your description be the shaded one)

There may be funky things happening to your windows on unshading, see bug #348064 - but that's not related to the tabbox.
Comment 2 Thomas Lübking 2015-09-20 06:20:41 UTC
Blast!

"please attach the output of "qdbus org.kde.KWin /KWin supportInformation"" ...
Comment 3 Ben Martin 2015-09-20 08:26:10 UTC
Created attachment 94654 [details]
qdbus org.kde.KWin /KWin supportInformation

qdbus org.kde.KWin /KWin supportInformation
Comment 4 Ben Martin 2015-09-20 08:27:22 UTC
Seems like I am using "recently used" as sort order in "kcmshell5 kwintabbox". Though the attached supportInfo will give that away (and clarify all other things).
Comment 5 Thomas Lübking 2015-09-20 10:04:02 UTC
Unfortunately not.
Anything special about the particular windows (do they belong to the same application, is one maybe a modal dialog etc.?)
Comment 6 Ben Martin 2015-09-20 22:01:24 UTC
Originally I had one emacs window and two konsole (window 1 was emacs, 2 was a console and I just opened up a new console window to give me the window 3 used for shading).

I just tried it with kate as the third window just in case having konsole twice in there was causing a problem. The same thing happened. I actually managed to get the kate window (which was shaded) to have focus instead of emacs. I think maybe that happened because the kate window would temporarily unshade during a normal alt+tab and if I hit the key combo in succession quickly then maybe it was being registered as the previous window somehow. Though the how is all speculation.
Comment 7 Thomas Lübking 2015-09-20 22:29:16 UTC
Do you use a tabbox and in case, can you reproduce without?
(kcmshell5 kwintabbox, upper left checkbox below "show selected window")

Shaded windows should *not* unshade during alt+tab unless they're the selected window (and even then only if "show selected" is checked)
Comment 8 kde.org 2021-11-06 18:07:47 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 9 Bug Janitor Service 2021-11-21 04:39:03 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 10 Bug Janitor Service 2021-12-06 04:38:27 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!