Skip to content

better drag and drop window direction #9704

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

littleblack111
Copy link
Contributor

Describe your PR, what does it fix/add?

bindm = $mod, mouse:272, movewindow

currently only let the window be tiled left or right, but not up or down

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

n/a

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

ready

@littleblack111 littleblack111 force-pushed the fix-drag-n-drop-window branch 2 times, most recently from a59d280 to 92d2542 Compare March 23, 2025 12:10
@vaxerski
Copy link
Member

what?

@littleblack111
Copy link
Contributor Author

example:
https://drive.google.com/file/d/1zPKcvQNnEGop0AG0-PzNuWYMUoz2-i-2/view?usp=sharing

this wouldn't be possible without the patch

@Dregu
Copy link

Dregu commented Mar 26, 2025

I think you just invented smart_split again...

@littleblack111
Copy link
Contributor Author

I think you just invented smart_split again...

im pretty sure smart split only applies when your spawning the window, not moving them via mouse?

@vaxerski
Copy link
Member

hm, I don't know, I don't like this. Maybe if it could be configurable.

@littleblack111 littleblack111 force-pushed the fix-drag-n-drop-window branch from d4b4448 to 11f6e45 Compare March 27, 2025 07:27
@littleblack111
Copy link
Contributor Author

how abt now

@vaxerski
Copy link
Member

hm, why is this general? I think it won't make sense on e.g. master?

@littleblack111
Copy link
Contributor Author

so dwindle?

@Dregu
Copy link

Dregu commented Mar 28, 2025

This is still exactly how dwindle:smart_split works with drag n drop, not just new windows. I don't know if it's a cocktail of options, but when I turn on smart_split, dragged windows also get tiled on the cursor side...

@vaxerski
Copy link
Member

this also makes you able to split in unnatural ways though, does smart_split allow that? dont think so.

@littleblack111
Copy link
Contributor Author

Any updates?

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