Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky

Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Differential Revision: https://phabricator.services.mozilla.com/D92180
This commit is contained in:
Robert Mader
2020-10-03 05:47:51 +00:00
parent a5a27341c7
commit e0be76ae7f

View File

@@ -7959,9 +7959,10 @@ void nsWindow::SetProgress(unsigned long progressPercent) {
#ifdef MOZ_X11 #ifdef MOZ_X11
void nsWindow::SetCompositorHint(WindowComposeRequest aState) { void nsWindow::SetCompositorHint(WindowComposeRequest aState) {
if (mIsX11Display && if (!mIsX11Display) {
(!GetLayerManager() || return;
GetLayerManager()->GetBackendType() == LayersBackend::LAYERS_BASIC)) { }
gulong value = aState; gulong value = aState;
GdkAtom cardinal_atom = gdk_x11_xatom_to_atom(XA_CARDINAL); GdkAtom cardinal_atom = gdk_x11_xatom_to_atom(XA_CARDINAL);
gdk_property_change(gtk_widget_get_window(mShell), gdk_property_change(gtk_widget_get_window(mShell),
@@ -7969,7 +7970,6 @@ void nsWindow::SetCompositorHint(WindowComposeRequest aState) {
cardinal_atom, cardinal_atom,
32, // format 32, // format
GDK_PROP_MODE_REPLACE, (guchar*)&value, 1); GDK_PROP_MODE_REPLACE, (guchar*)&value, 1);
}
} }
#endif #endif