Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 1a71158338c4da55858134e1957cf0d78088265d https://github.com/WebKit/WebKit/commit/1a71158338c4da55858134e1957cf0d78088265d Author: Carlos Garcia Campos <cgar...@igalia.com> Date: 2023-10-10 (Tue, 10 Oct 2023)
Changed paths: M Source/WebKit/UIProcess/API/gtk/ToplevelWindow.cpp M Source/WebKit/UIProcess/API/gtk/ToplevelWindow.h M Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp Log Message: ----------- [GTK] Mark the view as not visible when left the last monitor https://bugs.webkit.org/show_bug.cgi?id=262954 Reviewed by Michael Catanzaro. 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. * Source/WebKit/UIProcess/API/gtk/ToplevelWindow.cpp: (WebKit::ToplevelWindow::isMinimized const): (WebKit::ToplevelWindow::isInMonitor const): (WebKit::ToplevelWindow::connectSurfaceSignals): * Source/WebKit/UIProcess/API/gtk/ToplevelWindow.h: * Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewBaseToplevelWindowStateChanged): (webkitWebViewBaseToplevelWindowMonitorChanged): Canonical link: https://commits.webkit.org/269137@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes