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 rule consequence floatplacement=smart #978

Merged
merged 5 commits into from Aug 2, 2020
Merged

Conversation

t-wissmann
Copy link
Member

@t-wissmann t-wissmann commented Jul 30, 2020

This adds a new option 'smart' for the rule consequence floatplacement.
It tries to place the floating window with as little overlap to other
floating windows as possible. Beside documentation, this also adds
test cases.

Smart window placement is quite hard to test, so I have two test cases
that actually verify the window positions, and one test case that only
adds a bunch of clients without verifying anything (not contributing to
code coverage).

This has been requested in #73.

This adds a new option 'smart' for the rule consequence floatplacement.
It tries to place the floating window with as little overlap to other
floating windows as possible. Beside documentation, this also adds
test cases.

Smart window placement is quite hard to test, so I have two test cases
that actually verify the window positions, and one test case that only
adds a bunch of clients without verifying anything (not contributing to
code coverage).
@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #978 into master will increase coverage by 0.0%.
The diff coverage is 97.2%.

@@          Coverage Diff           @@
##           master    #978   +/-   ##
======================================
  Coverage    89.2%   89.3%           
======================================
  Files         102     102           
  Lines        8420    8494   +74     
======================================
+ Hits         7519    7592   +73     
- Misses        901     902    +1     

@blarz blarz changed the title Add rule consequene floatplacement=smart Add rule consequence floatplacement=smart Aug 2, 2020
Copy link
Contributor

@blarz blarz left a comment

Choose a reason for hiding this comment

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

(Fixed a missing a character in the PR title)

Played around with it locally: very nice, I love it!

@mergify mergify bot merged commit 35b3394 into master Aug 2, 2020
@mergify mergify bot deleted the smart-window-placement branch August 2, 2020 08:57
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.

None yet

2 participants