[X11] Firefox is not suppressed if main window is not visible
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: stransky, Assigned: stransky)
References
Details
Attachments
(2 files)
Firefox is not suppressed if main window is not visible under X11.
- Open a OpenGL testcase (https://webglsamples.org/aquarium/aquarium.html)
- maximize it
- switch to different window
- CPU is still utilized and Firefox eats 150% CPU
It affects only Firefox under X11. Firefox/Wayland works as expected.
Other browsers (Chrome/Chromium under X11) can suppress rendering in that case.
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
Looks like we lost this ability in Bug 1723134 where X11/EGL was switched to swap interval 0 so we don't throttle rendering on X11 when window is hidden.
Comment 4•3 years ago
|
||
EGL swap interval has been 0 even before that bug and seems to be required for Xwayland (bug 1635186 comment 49), EGL/Nvidia and GLX/Nvidia (it's still 1 for GLX: wontfix = bug 1716049 = WR/Nvidia has been switched to EGL or SW WR), otherwise one hidden window blocks rendering in all others.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 5•1 year ago
|
||
AFAIK Chrome supports that on X11 too but I don't have idea how they use it. Maybe getting x11 props directly?
| Assignee | ||
Comment 6•1 year ago
|
||
XVisibilityEvent may be used here.
| Assignee | ||
Comment 7•1 year ago
|
||
Tested again and XWayland doesn't send XVisibilityEvent at all. So Firefox under XWayland act as always visible. But it affects other X11 apps too (include Chromium).
| Assignee | ||
Comment 8•1 year ago
|
||
XVisibilityEvent is directly mapped to nsWindow::OnVisibilityNotifyEvent() so we're covered if X11 send the event correctly.
Description
•