WayfireWM / WayfireWM/wayfire

[window-rules] assign_workspace doesn't work with other rules

Open
#1,097 6 comments 0 reactions 0 assignees View on GitHub

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:

  1. Enable window-rules plugin
  2. 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
  1. assign_workspace doesn't work

Expected behavior
Assign_workspace works with other rules

Wayfire version
0.7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.