Vadoola / Tomotroid

Simple Pomodoro Timer made with Rust + Slint. Design shamelessly ripped from Pomotroid
MIT License
35 stars 7 forks source link

Timer Pauses when dragging the window on Windows only #61

Open Vadoola opened 7 months ago

Vadoola commented 7 months ago

This was discovered while doing some investigation into Issue #52, and there are some notes there.It appears to be a separate unrelated issue, so I'm documenting it here.

Below are quotes from other Issue

Hmm I'll need to check on Linux but I just noticed on Windows that the timer pauses when I'm moving the window...I think this is probably a seoerate bug though....

Interesting the timer pausing while I'm moving the window doesn't happen with Linux/Wayland....What is going on? I'm not sure I'd these bugs are related or not.

Vadoola commented 1 month ago

Did (does) the timer stop on Windows using the original logic I had way back when using setposition()? I switched away from that because it didn't work on Wayland....but It might be worth looking into on Windows. If it works, I might need to considering doing some conditional compilation so the move logic is different on Windows and Linux....however the callbacks would be different and I can't do conditional compilation in Slint itself....which means I would have to do some duplication of logic here, and try to figure out how to call the right callback when the TouchArea mouse move is triggered.

First I need to figure out if this would even solve the problem on Windows.

Vadoola commented 1 month ago

Looks like it's an upstream issue: https://github.com/slint-ui/slint/issues/5720

Vadoola commented 1 month ago

This appears to be an issue with winit: https://github.com/rust-windowing/winit/issues/3272