Bug 502022 - Application window still visible after changing activity
Summary: Application window still visible after changing activity
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: activities (show other bugs)
Version: 6.3.3
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 14:04 UTC by Maciej Sitarz
Modified: 2025-03-26 15:17 UTC (History)
2 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 Maciej Sitarz 2025-03-26 14:04:53 UTC
SUMMARY
I have some applications sometimes do not "stay" on the assigned Activity.
When switching to the next Activity (using a keyboard shortcut), the window with focus is still visible in the Activity I switched to (the application does not have this Activity selected in "Show in Activity")

STEPS TO REPRODUCE
1. Setup two activities: "Work"  and "Fun"
2. Change to Activity "Work"
3. Start Firefox and assign it to only "Show in Activities: Work"
4. Change to Activity "Fun"

OBSERVED RESULT
Firefox window is still visible after switching to "Fun" Activity.
When the issue occurs I can open the context menu on windows title bar. Hover over "Show in Activities" (to see the selected values) and close the context menu (do not change anything, just open it and close)
After that the Firefox window disappears from the Activity (and can be found in it's Activity -> "Fun")

EXPECTED RESULT
Firefox window should not be visible after switching to "Fun" Activity.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-200.fc41.x86_64 (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Quadro T1000

ADDITIONAL INFORMATION
- This issue started occurring after some upgrade, but I can't say from which exact version
- The issue is reproducible most of the time with Firefox, Chrome and krusader. When this occurs I tried the same scenario with konsole, but it works properly.
- The issue seems a bit random, sometimes it works and I can't reproduce, sometimes it occurs on every Activity switch
- When a window from a different Activity is displayed the Icons-and-Text Task Manager does not show it
- Icons-and-Text Task Manager Settings: Behavior > Show only tasks:
From current desktop: enabled
From current activity: enabled
- Widget "Show Activity Manager" does not seem to work, selecting an Activity there causes a quick switch to it, but then it goes back to the previous one

During Activity switching user journalctl shows this log entry:
```
kwin_x11[9044]: kwin_core: Failed to focus 0x1200011 (error 8)
```