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

feat(wm): apply workspace-rules to floating windows #1060

Merged

Conversation

alex-ds13
Copy link
Contributor

This commit allows workspace-rules and initial_workspace_rules to be applied to floating windows. As a by product of this commit, now the command to show visible-windows will now also show the maximized windows, monocled windows and floating windows.

Should fix the issue #990

@LGUG2Z I know you wanted to handle the refactor of the visible-windows type of functions but since this one was needed for this PR I've already changed it...

There are two TODO comments I added on this commit that I would like to have your feedback on.

@alex-ds13 alex-ds13 force-pushed the feature/workspace-rules-for-floating-windows branch from fe7c4fa to bfee8ff Compare October 16, 2024 11:46
@LGUG2Z LGUG2Z force-pushed the master branch 8 times, most recently from 12870dc to e46a1a6 Compare October 16, 2024 23:15
komorebi/src/workspace.rs Outdated Show resolved Hide resolved
.floating_windows_mut()
.push(Window::from(op.hwnd));
} else {
//TODO(alex-ds13): should this take into account the target workspace
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this doing a plain insert creating a new container for now; this can be iterated on in the future if there is specific request

This commit allows `workspace-rules` and `initial_workspace_rules` to be
applied to floating windows. As a by product of this commit, now the
command to show `visible-windows` will now also show the maximized
windows, monocled windows and floating windows.
@alex-ds13 alex-ds13 force-pushed the feature/workspace-rules-for-floating-windows branch from bfee8ff to 9f93ea0 Compare October 17, 2024 15:21
@LGUG2Z
Copy link
Owner

LGUG2Z commented Oct 17, 2024

I think this is good to merge now unless you want to add anything else?

@alex-ds13
Copy link
Contributor Author

I think this is good to merge now unless you want to add anything else?

No. It's good for me too! 🚀

@LGUG2Z LGUG2Z merged commit 903b6af into LGUG2Z:master Oct 18, 2024
6 checks passed
@alex-ds13 alex-ds13 deleted the feature/workspace-rules-for-floating-windows branch October 18, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants