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(winit): client-side window drag resize support #1542

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

Conversation

mmstick
Copy link
Contributor

@mmstick mmstick commented Nov 16, 2022

The patch was accepted into winit early this year. Iced has also already pulled a winit release that contains it. So it's just a matter of utilizing it here.

Requires iced-rs/winit#8
Implements iced-rs/rfcs#14

@hecrj hecrj added this to the 1.0.0 milestone Apr 12, 2023
@mmstick mmstick changed the title Client-side window cursor resize support feat(winit): client-side window drag resize support Aug 18, 2023
@n1ght-hunter
Copy link
Contributor

is there a reason this isnt merged yet?

) -> Option<
impl FnMut(&winit::window::Window, &winit::event::WindowEvent<'_>) -> bool,
> {
if window.drag_resize_window(ResizeDirection::East).is_ok() {

Choose a reason for hiding this comment

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

I think its worth mentioning that this line appears to be the source of the libcosmic Windows resizing on start bug. I don't see another way of checking for this support in winit at runtime, though.

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.

4 participants