[libtaskmanager] Activate window before moving, resizing, minimizing, or maximizing it
Make Wayland behaviour similar to X11. When restoring a window from a minimize state, switch to its corresponding desktop instead of duplicating it on the current desktop. Do the same with other actions.
Steps to reproduce:
- Open a window on virtual desktop 1.
- Minimize the window.
- Switch to virtual desktop 2.
- Restore the minimized window.
X11 result: Automatically switched to virtual desktop 1 with the window restored.
Wayland result: We stay on virtual desktop 2, the window is restored and it can be accessed on both virtual desktop 1 and 2.