pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
460 stars 46 forks source link

compile error on Windows no variant or associated item named `Resized` found for enum `winit::event::WindowEvent` in the current scope #691

Open wiiznokes opened 6 days ago

wiiznokes commented 6 days ago
 error[E0599]: no variant or associated item named `Resized` found for enum `winit::event::WindowEvent` in the current scope
   --> C:\Users\runneradmin\.cargo\git\checkouts\libcosmic-b367e32ffc370f4f\568ff09\iced\winit\src\program.rs:317:44
    |
317 |                 winit::event::WindowEvent::Resized(_)
    |                                            ^^^^^^^ variant or associated item not found in `WindowEvent`

error[E0599]: no variant or associated item named `EventLoopAwakened` found for enum `program::Event` in the current scope
   --> C:\Users\runneradmin\.cargo\git\checkouts\libcosmic-b367e32ffc370f4f\568ff09\iced\winit\src\program.rs:335:32
    |
335 |                         Event::EventLoopAwakened(
    |                                ^^^^^^^^^^^^^^^^^ variant or associated item not found in `Event<_>`
...
645 | pub(crate) enum Event<Message: 'static> {
    | --------------------------------------- variant or associated item `EventLoopAwakened` not found for this enum
netraptor commented 1 day ago

I have a PR that appears to fix this, but I'd feel better if someone verified if those are actually the correct replacements.