Skip to content

Commit

Permalink
Bug 1782778 [Linux] Don't call ResumeCompositorFlickering() on destro…
Browse files Browse the repository at this point in the history
…yed windows r=emilio

Depends on D153572

Differential Revision: https://phabricator.services.mozilla.com/D153573
  • Loading branch information
stransky committed Aug 4, 2022
1 parent 7d2327c commit 799a600
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/gtk/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6133,7 +6133,9 @@ void nsWindow::PauseCompositorFlickering() {
COMPOSITOR_PAUSE_TIMEOUT,
[](void* data) -> gint {
nsWindow* window = static_cast<nsWindow*>(data);
window->ResumeCompositorFlickering();
if (!window->IsDestroyed()) {
window->ResumeCompositorFlickering();
}
return true;
},
this);
Expand Down

0 comments on commit 799a600

Please sign in to comment.