Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect workspace data in wf::view_change_workspace_signal #2369

Open
marcusbritanicus opened this issue May 26, 2024 · 2 comments
Open

Incorrect workspace data in wf::view_change_workspace_signal #2369

marcusbritanicus opened this issue May 26, 2024 · 2 comments
Labels
bug easy Issues that do not require knowledge about the whole codebase good first issue PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR

Comments

@marcusbritanicus
Copy link
Contributor

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:

  1. Enable plugin vswitch
  2. Move a view between two workspaces
  3. The signal wf::view_change_workspace_signal contains the same value in both from and to fields. The to values is correct, and the from value contains same value as to.

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

@ammen99
Copy link
Member

ammen99 commented Jun 11, 2024

I think it should be easy to set them in the plugins when they emit the signal.

@ammen99 ammen99 added easy Issues that do not require knowledge about the whole codebase good first issue PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR labels Jun 11, 2024
@marcusbritanicus
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug easy Issues that do not require knowledge about the whole codebase good first issue PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR
Projects
None yet
Development

No branches or pull requests

2 participants