mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 09:54:42 +00:00
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:
parent
d1ba6ea81d
commit
261b901e97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user