Skip to content

Commit

Permalink
Backed out changeset 5c8e4f2bda2b (bug 1882021) for causing mochitest…
Browse files Browse the repository at this point in the history
… failures, a=backout
  • Loading branch information
dsmithpadilla committed Mar 3, 2024
1 parent 3b5c795 commit 9e1b338
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions widget/gtk/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ void nsWindow::Destroy() {

DestroyLayerManager();

mSurfaceProvider.CleanupResources();

g_signal_handlers_disconnect_by_data(gtk_settings_get_default(), this);

if (mIMContext) {
Expand Down Expand Up @@ -4137,16 +4139,6 @@ void nsWindow::OnUnmap() {
mSourceDragContext = nullptr;
}
}

// We don't have valid XWindow any more,
// so clear stored ones at GtkCompositorWidget() for OMTC rendering
// and mSurfaceProvider for legacy rendering.
if (GdkIsX11Display()) {
mSurfaceProvider.CleanupResources();
if (mCompositorWidgetDelegate) {
mCompositorWidgetDelegate->DisableRendering();
}
}
}

void nsWindow::OnSizeAllocate(GtkAllocation* aAllocation) {
Expand Down

0 comments on commit 9e1b338

Please sign in to comment.