Skip to content

Conversation

@lichie567
Copy link

@lichie567 lichie567 commented Nov 30, 2025

Another PR addressing the issues highlighted in my comment here: #12434 (reply in thread)

This is a fix for the move and center rules not overriding each other. Currently, because these were stored as separate effects, the center rule was always taking priority because the application of that effect was happening later in listener_mapWindow.

This PR removes both of those rules and replaces them with a new one named position, which is a better descriptor of the effect IMO. The position rule accepts the same arguments as move, but also accepts "center" as a option. With this change, whichever position rule is defined last wins.

If you would like, I can modify this PR to leave the center and move rules intact for backwards compatibility, but I figured users will be forced to update their configs with recent changes anyway so a big breaking change may be acceptable at the moment. Please point me to any follow-up items that would need to be taken care of elsewhere, such as updates to documentation or tests.

And lastly, regarding the comment I linked above, this PR still does not fix a potential bug where workspace rules from the focused workspace are being applied to windows launched on another workspace via a rule passed to the exec dispatcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant