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
This commit is contained in:
stransky 2024-01-11 07:44:07 +00:00
parent d1ba6ea81d
commit 261b901e97

View File

@ -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;