pop-os / cosmic-randr

Library and utility for displaying and configuring Wayland outputs
Mozilla Public License 2.0
28 stars 2 forks source link

Dispatch awaits indefinitely on other desktop environments #9

Open jfroy opened 8 months ago

jfroy commented 8 months ago

cosmic-randr list hangs on Arch with plasma 6 rc1. It seems to be because the context.dispatch().await does not return in async fn list.

    async fn list(&mut self, kdl: bool) -> Result<(), Box<dyn std::error::Error>> {
        let _res = self.context.dispatch(&mut self.event_queue).await;

In async fn main, event_queue.roundtrip consistently returned 54 on my system when I tested.

rustc 1.72.0 (5680fa18f 2023-08-23)

richardmrodriguez commented 8 months ago

I have noticed that cosmic-randr list also hangs when running on Pop! on Wayland (the GNOME shell Wayland session, not the COSMIC session).

martyfuhry commented 3 months ago

It hangs in COSMIC on Wayland, as well.