Vadoola / Tomotroid

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

Timer not running in the background? #52

Closed Vadoola closed 8 months ago

Vadoola commented 11 months ago

I haven't dug to deep into this yet, so I'm not sure of the specifics. It looked like the timer essentially paused when the window was behind another window, and then started again when it came back to the forefront. That would be a pretty serious bug if it's correct.

I noticed this under Linux / Wayland in debug mode, but haven't tested it much beyond that

Vadoola commented 11 months ago

So a couple of quick tests....this appears to be happening on Linux (tried 2 machines) with Wayland both in debug and release mode.

Does NOT seem to be happening in Windows 11.

I need to test it on Win 10, and also X11

Vadoola commented 11 months ago

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....

Vadoola commented 11 months ago

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. While I did a lit of my initial development on Windows recently I've been doing it mostly on Linux. I need to spend a bit more time testing the newest code on Windows.

Vadoola commented 11 months ago

It appears that the timer pausing when not in the foreground doesn't exist in X11....I need to do a bit more testing. x11 has some issues on this machine and there were other oddities happening that weren't specific to Tomotroid.

Vadoola commented 10 months ago

It appears this is related to this Slint bug: https://github.com/slint-ui/slint/issues/1695

Vadoola commented 8 months ago

The Slint bug has been resolved. I'm not sure in what Slint version it was actually fixed with, but I've tested on my current code after upgrading to Slint 1.4.1 and this issue is resolved.