Skip to content

Conversation

lxe
Copy link

@lxe lxe commented Sep 14, 2025

Describe your PR, what does it fix/add?

hypr.mp4

Adds a new configuration option dwindle:smart_split_on_drop that provides more granular control over when smart split behavior is used in the dwindle layout.

When enabled, smart split (cursor-position-based splitting) is only used for mouse drop operations, while regular split_width_multiplier-based splitting is used for splits during window creation.

This way, you can still split based on aspect ratio when creating new windows, while drag and drop to rearrange using mouse position.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

  • The change is backward compatible - the new option defaults to false, maintaining existing behavior

Is it ready for merging, or does it need work?

Pay extra attention to the test

@lxe lxe force-pushed the smart_split_on_drop branch from d845dbc to 37df9c1 Compare September 16, 2025 05:07
@lxe lxe requested a review from vaxerski September 16, 2025 05:08
@lxe lxe force-pushed the smart_split_on_drop branch from 01a8064 to 37df9c1 Compare September 16, 2025 23:51
@vaxerski
Copy link
Member

can you rebase on main for c-f

@Kommynct
Copy link

would be kinda cool if the tiled window moved out of the way so you know where the window is going to be placed, or a highlight appears in the orientation (sway does this)

@lxe lxe force-pushed the smart_split_on_drop branch from 37df9c1 to 14d6add Compare September 20, 2025 18:26
@lxe
Copy link
Author

lxe commented Sep 20, 2025

would be kinda cool if the tiled window moved out of the way so you know where the window is going to be placed, or a highlight appears in the orientation (sway does this)

Good idea. Let me try in another PR

@vaxerski
Copy link
Member

wiki mr needed

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.

3 participants