In GTK4 under wayland we receive the leave-monitor signal when the window is minimized, or hidden in other ways like moving to a different workspace. In those cases, we can mark the view as not visible to avoid doing rendering updates.
Pull request: https://github.com/WebKit/WebKit/pull/18892
Committed 269137@main (1a71158338c4): <https://commits.webkit.org/269137@main> Reviewed commits have been landed. Closing PR #18892 and removing active labels.