Closed Vadoola closed 8 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
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. 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.
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.
It appears this is related to this Slint bug: https://github.com/slint-ui/slint/issues/1695
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.
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