Bug 482912 - Need to use task switcher twice to switch out of a fullscreen XWayland application
Summary: Need to use task switcher twice to switch out of a fullscreen XWayland applic...
Status: RESOLVED DUPLICATE of bug 484155
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (other bugs)
Version First Reported In: 6.0.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2024-03-08 19:11 UTC by adam.cosner
Modified: 2024-10-04 12:39 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adam.cosner 2024-03-08 19:11:26 UTC
SUMMARY
Whenever I have a fullscreen application running, I find that I need to alt+tab to another program once to "unfocus" the fullscreen application (it still is showing above anything and clicking anywhere will refocus the application) and then while it's unfocused I need to alt+tab a second time to actually switch to another application. This is running through an XWayland fullscreen application, I have not tested with a native Wayland application.


STEPS TO REPRODUCE
1. Open a fullscreen XWayland application like a game through steam, ensuring it is in fullscreen exclusive mode
2. Attempt to alt+tab into another application

OBSERVED RESULT
The application switched to does not show above the fullscreen app and needs to be alt+tabbed to again

EXPECTED RESULT
It should switch to another application immediately and hide the fullscreen application.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (6.7.9-zen1-1-zen)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2024-03-11 01:38:50 UTC
Can confirm, if I open Dolphin while I have a Steam game focused, Dolphin is focused but the game is in front of it. Despite the active window, the game stays in the active layer and is thus shown above Dolphin
Comment 2 Alex Folland 2024-10-04 04:27:10 UTC
Thanks for posting this.  Someone on reddit posted a workaround which didn't work for me [here](https://www.reddit.com/r/kde/comments/1bwk5lb/alt_tabbing_junkiness_in_full_screen_apps_with/), but presumably did work at some point for them.  I tried unchecking "Click raises active window" then starting the game, but the alt-tab system was still super messed up when switching from the game.

Here is my observed behavior with steps to reproduce:

1. Alt-tab once: The panel gets shown, but the next window doesn't get shown and stays in the background, with the game still visible.
2. If the task manager button (taskbar button) for the window I want to activate is clicked at this time, KWin just goes back to the game and hides the panel instead of showing the window I want to see, ignoring what I wanted completely.
3. If alt-tab is pressed again instead of clicking the task manager button, KWin also just goes back to the game.
4. The only way out of viewing the game without having to quit the whole game is executing the following difficult sequence correctly:
  1. Alt-tab and release.
    - This shows the panel but not the other window, leaving the game still visible on most of the screen, and the panel on top.
  2. Alt-tab and release only tab, then hold shift and press and release tab again while still holding alt and shift, then finally release all keys.
    - This finally results in seeing the intended window on top of the game.

It's a horrible problem and makes just switching between a web browser or text editor and the game extremely uncomfortable. These are basic desktop actions.

For the record, I've experienced this problem with the last 3 long games I've played through in the last month, and it's bugged me in every multi-hour play session. It's as bad as Microsoft Windows which has its own slew of alt-tab issues with fullscreen games, but at least switching works when the game is set to "borderless fullscreen", a weird Windows-only hack that the gaming industry has largely employed to work around Windows' problems with fullscreen games.

I've experienced the issue recently with the following Steam games in KDE Plasma Wayland:

- Dragon Quest 11 S Definitive Edition
- Dragon Quest Monsters: The Dark Prince
- Twilight Survivors

I realize this bug tracker does not support markdown.  I am using markdown still in hopes that it will some day support it.

By the way, why is this marked as "minor"?  It's a horrible bug that every gamer coming from Windows will experience in the first 15 minutes of gaming.  The window manager is expected to be powerful enough to handle basic task switching without any issues.
Comment 3 Zamundaaa 2024-10-04 12:39:08 UTC

*** This bug has been marked as a duplicate of bug 484155 ***