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 SpecificWith variant to window::Position #2435

Merged
merged 1 commit into from
May 10, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented May 10, 2024

This PR introduces a SpecificWith variant to the window::Position enum.

It works analogously to the Specific variant but it takes a function pointer instead. This function will be called with the window size and the monitor's resolution—effectively allowing relative positioning inside a monitor's bounds.

@hecrj hecrj added feature New feature or request shell addition labels May 10, 2024
@hecrj hecrj added this to the 0.13 milestone May 10, 2024
@hecrj hecrj enabled auto-merge May 10, 2024 20:20
@hecrj hecrj merged commit fa458a3 into master May 10, 2024
24 checks passed
@hecrj hecrj deleted the window/specific-with-position branch May 10, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant