[webkit-changes] [WebKit/WebKit] 1a7115: [GTK] Mark the view as not visible when left the l...
Carlos Garcia Campos
noreply at github.com
Tue Oct 10 06:41:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1a71158338c4da55858134e1957cf0d78088265d
https://github.com/WebKit/WebKit/commit/1a71158338c4da55858134e1957cf0d78088265d
Author: Carlos Garcia Campos <cgarcia at 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
More information about the webkit-changes
mailing list