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

feat: add a window drag resize task #2642

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

Conversation

tsuza
Copy link

@tsuza tsuza commented Oct 16, 2024

When implementing a custom title bar, most things are straight forward: minimizing, maximizing, closing, dragging, and the context menu.
However, there is one small issue: resizing. Since you have to turn off decorations, the border also gets disabled, and there is no easy way to specifically enable that through winit ( afaik ).

This PR exposes winit's drag_resize_window to give an easier time to resize the window, which is especially useful for the case I mentioned above.

Hopefully everything is up to standard!

@@ -1112,7 +1112,7 @@ pub fn native_key_code(
}
}

/// Converts some [`UserAttention`] into it's `winit` counterpart.
/// Converts some [`UserAttention`] into its `winit` counterpart.
Copy link
Author

Choose a reason for hiding this comment

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

This is technically out of scope, but I noticed this typo so I figured I'd fix it while I'm at it.

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.

1 participant