Bug 260352 - [GTK4] Toplevel window state change is not handled properly
Summary: [GTK4] Toplevel window state change is not handled properly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Garcia Campos
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2023-08-17 09:38 PDT by Carlos Garcia Campos
Modified: 2023-08-17 23:01 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2023-08-17 09:38:23 PDT
We monitor the toplevel window state to detect when the window is minimized to set the web pages as not visible and pause the rendering. In GTK3 we already get a change mask, so we do nothing if iconized state hasn't changed. In GTK4 we get the new state, but we don't know what changed, so we are actually changing the visibility of pages for any state change. We need to handle the changed mask manually.
Comment 1 Carlos Garcia Campos 2023-08-17 09:44:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16792
Comment 2 EWS 2023-08-17 23:01:55 PDT
Committed 267032@main (989de9dbc7ac): <https://commits.webkit.org/267032@main>

Reviewed commits have been landed. Closing PR #16792 and removing active labels.