[window-rules] assign_workspace doesn't work with other rules
Open
Nobody has claimed this yet.
bug
low-priority
PRs-welcome
- Dominant language
- C++
- Stars
- 3.1k
- Forks
- 237
- Avg merge
- 1h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
Assign_workspace will not work if you have another rule like maximize.
To Reproduce
Steps to reproduce the behavior:
- Enable window-rules plugin
- Add config
rule = on created if app_id is "app" then assign_workspace 0 1
rule_2 = on created if app_id is "app" then maximize
- assign_workspace doesn't work
Expected behavior
Assign_workspace works with other rules
Wayfire version
0.7.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Enable the window-rules plugin and reproduce the issue with the two rules shown in the report on Wayfire 0.7.0. Start from the window-rules plugin entry point and trace how both created events are handled. Done means assign_workspace still moves the window when maximize is configured as another rule.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100