Bug 483148 - TM context menu "Move to [activity name]" doesn't move window, and instead shows window on all activities
Summary: TM context menu "Move to [activity name]" doesn't move window, and instead sh...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-10 18:15 UTC by bastimeyer123
Modified: 2024-12-16 03:29 UTC (History)
5 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 bastimeyer123 2024-03-10 18:15:37 UTC
SUMMARY
The "Move to [activity name]" which was implemented in Plasma 5.24 has stopped working in Plasma 6.

Instead of moving the window to the specific activity, the window gets shown on all activities. This is only the case though if the window hasn't been shown on all activities in the first place.

Only tested on Wayland...

STEPS TO REPRODUCE
1. Set up activity A and B
2. Open any GUI application on activity A
3. Right click the task manager's item -> "Show in activities" -> "Move to activity B"

OBSERVED RESULT
Application window is shown on both activity A and B

EXPECTED RESULT
Window should only be shown on activity B

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0 
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-03-11 21:27:57 UTC
Does the equivalent menu item in the window context menu suffer from the same issue? Or does that one work for you?
Comment 2 bastimeyer123 2024-03-11 21:43:41 UTC
(In reply to Nate Graham from comment #1)
> Does the equivalent menu item in the window context menu suffer from the
> same issue? Or does that one work for you?

No, that one works as expected and moves the window to the other activity. Only the task manager context menu seems to be affected by this bug.
Comment 3 Nate Graham 2024-03-13 18:55:08 UTC
Can reproduce that issue.
Comment 4 edrics 2024-11-21 09:02:27 UTC
Still present in Plasma: 6.2.3, I will add two observations:

1. The bug seems to exist only when there are just two activities. I created a third activity to check if the window appears on all activities or just the starting and target ones: suddenly windows can be moved without bugs between activities, as expected using this action.

2. When there are only two activities, the bug acts as described. I will just add  that using the "move to activity" action twice has the desired effect: the first time it shows it in both activities, the second time the window disappears from the starting activity and remains only in the target one. It is like selecting "show in all activities" and then de-selecting the starting activity.

Can anyone confirm these behaviours?
Comment 5 Bruno Massa 2024-12-16 03:29:42 UTC
WOW, exactly like that! I've never created a 3rd activity, but when I did, the "move to" just worked.