-
Notifications
You must be signed in to change notification settings - Fork 17
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
Layout rework #224
base: master
Are you sure you want to change the base?
Layout rework #224
Conversation
|
||
for client in this.taggedClients.clients: | ||
if client.borderWidth != 0 or this.monitorSettings.layoutSettings.outerGap > 0: | ||
client.borderWidth = this.windowSettings.borderWidth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just done to make things pass. Probably not quite correct, but I'm not entirely sure what this does.
The bug requiring monitor section to be present or it would crash with a cryptic message.
Tests are green now. Apart from the comment above I don't think there's anything I've missed now. |
Looked into implementing my new layout now. It seems like I might want to add a |
Allow width/height and x/y to be set even when not in floating mode, my layout only responds to width/height at the moment, but maybe someone else will need this. Otherwise it's just moving bits and pieces around.
This commit moves all the layout logic and settings out from various modules and into the "masterstacklayout" module. With these changes it should be much easier to add new layouts.
There are still a couple actions like "moveWindowNext" which I guess technically might be said to belong to the "masterstacklayout" so it's possible that I might have to make some further changes in order to make new layouts work. But I believe this should be enough.