waycrate / exwlshelleventloop

winit like binding for layershell and sessionlock
MIT License
44 stars 9 forks source link

iced_examples/counter panics when clicking left or right on Sway #25

Open JustSoup312 opened 3 months ago

JustSoup312 commented 3 months ago

When running the counter example on Sway window manager clicking the left or right buttons leads to a panic.

Two errors seem to be reported depending on if the panic is immediate or not.

If the panic isn't immediate the window seems to be dismissed with the following error spamming the logs: Protocol error 1 on object zwlr_layer_surface_v1@16:

If the panic is immediate it displays the errors:

zwlr_layer_surface_v1@16: error 1: width 0 requested without setting left and right anchors
khronos-egl-6.0.0/src/lib.rs:1173:42:
called `Option::unwrap()` on a `None` value
Decodetalkers commented 3 months ago

https://github.com/waycrate/exwlshelleventloop/blob/master/layershellev%2Fsrc%2Flib.rs#L442-L445

Logic is here, but I cannot reproduce it...

Decodetalkers commented 3 months ago

maybe you are using the latest sway? I update the wayland-protocols, maybe will fix it