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

randr: allow geometry strings to include @n #940

Merged
merged 4 commits into from
Dec 25, 2023
Merged

Conversation

ThomasAdam
Copy link
Member

When geometry string contain @n, where n is a number from 0..INT_MAX, treat that number as a monitor's assigned number to use.

This is similar to how fvwm used to handle these geometry strings with Xinerama, except that the designation of monitor numbers is now derived via a deterministic algorithm. See 'RANDR SUPPORT' in "man fvwm3all"

When geometry string contain @n, where n is a number from 0..INT_MAX,
treat that number as a monitor's assigned number to use.

This is similar to how fvwm used to handle these geometry strings with
Xinerama, except that the designation of monitor numbers is now derived
via a deterministic algorithm.  See 'RANDR SUPPORT' in "man fvwm3all"
@ThomasAdam ThomasAdam added the type:enhancement Augmenting an existing feature label Dec 23, 2023
@ThomasAdam ThomasAdam added this to the 1.1.0 milestone Dec 23, 2023
@ThomasAdam ThomasAdam self-assigned this Dec 23, 2023
@ThomasAdam
Copy link
Member Author

fvwm-geometries

Seems to work OK for me. Testing welcome.

Centralise looking up a monitor based on its number, so that callers
are able to use this.
Switch the hand-rolled code in monitor_resolve_name to use
monitor_by_number.
Now that monitor_resolve_name understands how to look up monitors based
on a number, simply the code to make use of that.
@ThomasAdam ThomasAdam merged commit a7bfea6 into main Dec 25, 2023
5 checks passed
@ThomasAdam ThomasAdam deleted the ta/geometry-number branch December 25, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Augmenting an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant