From 261b901e97fffc4983057d2406a24191456304a5 Mon Sep 17 00:00:00 2001 From: stransky Date: Thu, 11 Jan 2024 07:44:07 +0000 Subject: [PATCH] Bug 1796960 [Linux] Return correct nsWindow::IsMapped state on X11 r=emilio We should return correct nsWindow::IsMapped state on X11 too to prevent rendering lock to hidden windows with suspended compositor. Differential Revision: https://phabricator.services.mozilla.com/D198144 --- widget/gtk/nsWindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 0b1fe20b63ae..dcfdfd21c75a 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -805,11 +805,7 @@ void nsWindow::SetModal(bool aModal) { // nsIWidget method, which means IsShown. bool nsWindow::IsVisible() const { return mIsShown; } -bool nsWindow::IsMapped() const { - // TODO: Enable for X11 when Mozilla testsuite is moved to new - // testing environment from Ubuntu 18.04 which is broken. - return GdkIsWaylandDisplay() ? mIsMapped : true; -} +bool nsWindow::IsMapped() const { return mIsMapped; } void nsWindow::RegisterTouchWindow() { mHandleTouchEvent = true;