iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
26.33k stars 1.28k forks source link

embedding external windows doesn't work #2808

Closed edwloef closed 1 month ago

edwloef commented 2 months ago

Is your issue REALLY a bug?

Is there an existing issue for this?

Is this issue related to iced?

What happened?

Embedding an external window via the run_with_handle function doesn't work correctly.

I assume this is because the runtime doesn't know not to draw into the window, so there would need to be a way to spawn a window that is ignored while drawing / widgeting. I don't think anything else would be necessary for this to work, since it's already fairly easy to intercept window events via subscriptions, however a way to disable wayland (it doesn't support embedding) would be nice IMO.

This was already discussed on discord a few weeks back, just opening this issue to track progress etc

What is the expected behavior?

.

Version

master

Operating System

Linux

Do you have any log output?

edwloef commented 1 month ago

Turns out this was just a massive skill issue on my part lol. Everything works as expected now, had nothing to do with iced itself.