Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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