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

Add mwfact resizing to spiral layout #3945

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MorellThomas
Copy link

Add mwfact resizing to spiral layout.
Works the same way as in tile layout. Considers the left window of spiral as the master window.

Copy link
Member

@actionless actionless left a comment

Choose a reason for hiding this comment

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

thanks!

local wa = p.workarea
local cls = p.clients
local n = #cls
local old_width, old_height = wa.width, 2 * wa.height
local mwfact = t.master_width_factor + 0.5
Copy link
Member

Choose a reason for hiding this comment

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

Why + 0.5?

Copy link
Author

Choose a reason for hiding this comment

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

This is nessecary for it the default to behave as it did before this patch. Without changing the mwfact by pressing the key, the windows are split in the center of the screen. Without adding + 0.5, the default center would have the left window occupy only a small part on the left of the screen and it cannot be resized until the right side.

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.

3 participants