Incorrect workspace data in wf::view_change_workspace_signal
Describe the bug
The data returned by wf::view_change_workspace_signal is sometimes incorrect. This happens, for example, when we attempt to move a window using the with_win_* keybind of vswitch. I believe this happens when animations are involved. Or if you attempt to move a view between workspaces interactively, via the move plugin.
To Reproduce Steps to reproduce the behavior:
- Enable plugin vswitch
- Move a view between two workspaces
- The signal
wf::view_change_workspace_signalcontains the same value in bothfromandtofields. Thetovalues is correct, and thefromvalue contains same value asto.
Expected behavior
from should contain the correct value.
Extra information
When the send_win_* vswitch is used, the values returned are proper.
Screenshots or stacktrace N/A
Wayfire version git
I think it should be easy to set them in the plugins when they emit the signal.
@ammen99 We already "set" them in the plugin. That's why we have a valid value. The problem is that the wrong value is being set.
https://github.com/WayfireWM/wayfire/blob/master/plugins/vswitch/vswitch.cpp#L89