-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
c4614fd
commit 1a71158
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters