Bug 505965

Summary: Virtual Desktops Numbering / Order is being changed when I move entire virtual desktop's applications to other virtual desktop.
Product: [Plasma] kwin Reporter: kannakalyan05
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dev.bacteriostat, kannakalyan05, uhhadd
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:
Attachments: Virtual Desktops Numbering / Order is being changed when I move entire virtual desktop's applications to other virtual desktop.

Description kannakalyan05 2025-06-22 11:49:40 UTC
SUMMARY
Virtual Desktops Numbering / Order is being changed when I move entire virtual desktop's applications to other virtual desktop.


STEPS TO REPRODUCE
1. Set Virtual Desktops Rows:- 2 Desktops:- 4
2. Open apps in 2 different virtual desktops and go to grid view and shift entire desktop using mouse to other empty one and then check the grid's desktops numbers are changed.

OBSERVED RESULT
Grid's virtual desktop numbers are changed and visual view is not functional view.

EXPECTED RESULT
Grid numbers should remain same even if I transfer all applications from one to other virtual desktop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux (Upto date)
KDE Plasma Version:  6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Comment 1 kannakalyan05 2025-06-22 11:52:05 UTC
Created attachment 182511 [details]
Virtual Desktops Numbering / Order is being changed when I move entire virtual desktop's applications to other virtual desktop.
Comment 2 Bacteria 2025-06-23 19:06:03 UTC
Yup, I can confirm that the order is being wrongly displayed by the Virtual Desktop Grid and the overview. However the VD pager is showing the correct order and the current active VD.
Comment 3 Vlad Zahorodnii 2025-06-24 07:25:50 UTC
That re-orders virtual desktops, perhaps there should be a better feedback. Regarding the pager, it's a known issue and, unfortunately, it'll be fixed only in 6.5 due to the required protocol changes.

For better feedback, please open a new bug report.
Comment 4 Bacteria 2025-06-24 07:32:30 UTC
But there is one more problem. The touchpad gestures make no sense. I have a 3x3 grid of VDs. 

Original Order:
VD 1 | VD 2 | VD 3

Swap VD 1 and VD 2

New Order:
VD 2 | VD 1 | VD 3

Select VD 2, swipe right to move to left of current VD, that should do nothing because VD 2 is at position one. Instead, the touchpad gesture takes you to VD 1.
Comment 5 Bacteria 2025-06-24 07:37:16 UTC
(In reply to Bacteria from comment #4)
> But there is one more problem. The touchpad gestures make no sense. I have a
> 3x3 grid of VDs. 
> 
> Original Order:
> VD 1 | VD 2 | VD 3
> 
> Swap VD 1 and VD 2
> 
> New Order:
> VD 2 | VD 1 | VD 3
> 
> Select VD 2, swipe right to move to left of current VD, that should do
> nothing because VD 2 is at position one. Instead, the touchpad gesture takes
> you to VD 1.

I will open a new bug report for this as the current one is primarily about the re-ordering which is not a problem.
Comment 6 Vlad Zahorodnii 2025-06-24 07:38:45 UTC
> I will open a new bug report for this as the current

It should be fixed in 6.4.1
Comment 7 Bacteria 2025-06-24 07:40:23 UTC
(In reply to Vlad Zahorodnii from comment #6)
> > I will open a new bug report for this as the current
> 
> It should be fixed in 6.4.1

Oh okay. Thanks. Won't open a bug report then.