-
Notifications
You must be signed in to change notification settings - Fork 42
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
Windows 10: Window Resizing Triggered on Launch #593
Comments
Does anyone know of a workaround for this (that is, is there a way to manually cancel a window resize on launch)? |
Ok, I think I've figured out where the bug is. At the very least, I found out what to change to stop it, but I'm not sure what the actual fix should be because I don't fully understand the reasoning behind the code here. In iced_winit::application::run_instance(), there is this call around line 413:
That function is in the
According to the winit docs, this starts a window drag event. If I alter Now, that function does have this comment on it:
So...is there a different way to perform this check without triggering a resize on launch? Or am I completely off base here? |
On Windows 10 (possibly other versions), any app built with libcosmic opens with triggered window resizing on right edge, following mouse. You must click somewhere to release the drag. This happens on every lanuch.
Steps to Reproduce:
xdg-portal
feature (crashes the build)Expected Behavior: The window should open normally without being in resizing mode.
Tested with Windows 10, on physical and virtual machine.
Affects all libcosmic apps I tried.
libcosmic revision: 0a1922d (latest master)
rustc version: 1.80.1 (3f5fd8dd4 2024-08-06)
cargo version: 1.80.1 (376290515 2024-07-16)
example.mp4
The text was updated successfully, but these errors were encountered: