rocksdanister / lively

Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
https://rocksdanister.com/lively
GNU General Public License v3.0
15.19k stars 1.06k forks source link

Some wallpapers not pausing when using WebView2 #1951

Open Ju1-js opened 1 year ago

Ju1-js commented 1 year ago

Describe the bug Some web wallpapers don't pause when using WebView2, could be related to #1926.

To Reproduce Steps to reproduce the behaviour:

  1. Open Lively UI and set the Web Browser to "WebView2".
  2. Set the wallpaper to Medusae, Ribbons, or any other web wallpaper.
  3. Click on another application to supposedly pause the wallpaper.
  4. They don't pause.

Expected behaviour The web-based wallpapers pause.

Screenshots/Video Note: Only some web wallpapers don't pause; others do... It could also be due to Windows 11 22H2.

https://github.com/rocksdanister/lively/assets/40339350/4e7ee020-804d-41ba-b6e1-01618a82515f

Desktop (please complete the following information):

Log file (Important) lively_log_20231021_204348.zip

rocksdanister commented 1 year ago

This is most likely because of handles changing due to desktop updating in 22H2 and unrelated to WebView.

Try to recreate the bug in beta build: https://github.com/rocksdanister/lively-beta/releases

Ju1-js commented 1 year ago

Nope, it still happens with the beta build.

https://github.com/rocksdanister/lively/assets/40339350/595f124f-d8d0-453c-b906-833ec50d0488

Desktop:

Log File: lively_log_20231022_112016.zip

rocksdanister commented 1 year ago

Can confirm it does happen but the funny thing is I accidently ended up fixing this in a refactor (which probably will introduce new bugs.)

Ju1-js commented 1 year ago

@rocksdanister In the new beta version 2.0.7.3b, it still seems to not work... I wouldn't worry too much about as it is technically a beta feature...

https://github.com/rocksdanister/lively/assets/40339350/28aea020-698e-47ee-af7d-c7bf95a6835c

Desktop:

Log File: lively_log_20231024_182835.zip

rocksdanister commented 1 year ago

I am pausing the wallpaper by attaching debugger to rendering thread of WebView2/CefSharp (There is no standard way to pause browser right now.)

Looks like something changed in WebView2 update, its working fine in debug build of Lively but not release 🤔