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

DRAFT scale: include all views visible on workspace #1775

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mntmn
Copy link

@mntmn mntmn commented Apr 14, 2023

Intuitively, "scale" should include all views that are visible in (overlap with) the current workspace, not only those that are mostly inside of it.

@ammen99
Copy link
Member

ammen99 commented Jun 9, 2023

@soreau Thoughts?

By the way, if we change the behavior as you propose, the whole function can be replaced with a single call:

output->wset()->get_views(wf::WSET_EXCLUDE_MINIMIZED | wf::WSET_MAPPED_ONLY | wf::WSET_CURRENT_WORKSPACE);

EDIT: this is with some changes which recently landed, this syntax wasn't available when you made the PR.

@ammen99 ammen99 requested a review from soreau June 9, 2023 11:50
@NamorNiradnug
Copy link
Contributor

NamorNiradnug commented Jul 7, 2023

I think the behavior should be configurable to allow users to choose between old and new behavior.

Probably it should hide away views which region overlaps only a little with the region of the current workspace.

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