Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d7385fad3ffb31d0c438e6b6a50dffb4390840c
      
https://github.com/WebKit/WebKit/commit/8d7385fad3ffb31d0c438e6b6a50dffb4390840c
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2025-01-10 (Fri, 10 Jan 2025)

  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] Monitor window surfaces obscured by other windows (to suspend tabs, 
stop the frame clock and tell web apps to throttle themselves)
https://bugs.webkit.org/show_bug.cgi?id=285167

Reviewed by Adrian Perez de Castro.

Handle GDK_TOPLEVEL_STATE_SUSPENDED when available in GTK4 to update the
view visibility.

* Source/WebKit/UIProcess/API/gtk/ToplevelWindow.cpp:
(WebKit::ToplevelWindow::isFullscreen const):
(WebKit::ToplevelWindow::isMinimized const):
(WebKit::ToplevelWindow::isSuspended const):
(WebKit::ToplevelWindow::disconnectSurfaceSignals):
* Source/WebKit/UIProcess/API/gtk/ToplevelWindow.h:
* Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseUpdateVisibility):
(webkitWebViewBaseToplevelWindowStateChanged):
(webkitWebViewBaseToplevelWindowMonitorChanged):
(webkitWebViewBaseMap):
(webkitWebViewBaseUnmap):

Canonical link: https://commits.webkit.org/288685@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to