libtaskmanager: consolidate group parent adjacent to the moved task
If a task exchanges position with a group parent, the group parent also needs to be consolidated.
Test:
- Open many Konsole windows
- Open Firefox (One window)
- Now the task order is [Firefox] [Konsole Group Parent]
- Move Firefox to the right of Konsole group parent.
- Open group dialog of Konsole group parent
- Move the first Konsole window down to the second position
- Before this change, Firefox and Konsole group parent will exchange positions, which is incorrect. After this change, the Konsole task in the group dialog can be moved as expected.
Before | After |
---|---|
before | after |
Edited by Fushan Wen