diff options
author | Martin Stransky <stransky@redhat.com> | 2020-03-03 14:54:13 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2020-03-03 14:54:13 +0100 |
commit | 11bbed2d96bdec6b8c89372fd1f9b03fead54d0d (patch) | |
tree | 0247527aed2cf5828c4363eb80fc8a551ffecac3 /mozilla-1609732-pause-renderer.patch | |
parent | Trying to fix missing size_t (diff) | |
parent | Update to 74.0 Build 1 (diff) | |
download | librewolf-fedora-ff-11bbed2d96bdec6b8c89372fd1f9b03fead54d0d.tar.gz librewolf-fedora-ff-11bbed2d96bdec6b8c89372fd1f9b03fead54d0d.tar.bz2 librewolf-fedora-ff-11bbed2d96bdec6b8c89372fd1f9b03fead54d0d.zip |
fix
Diffstat (limited to 'mozilla-1609732-pause-renderer.patch')
-rw-r--r-- | mozilla-1609732-pause-renderer.patch | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/mozilla-1609732-pause-renderer.patch b/mozilla-1609732-pause-renderer.patch deleted file mode 100644 index 6f159e1..0000000 --- a/mozilla-1609732-pause-renderer.patch +++ /dev/null @@ -1,73 +0,0 @@ -diff --git a/widget/gtk/nsWindow.h b/widget/gtk/nsWindow.h ---- a/widget/gtk/nsWindow.h -+++ b/widget/gtk/nsWindow.h -@@ -681,6 +681,7 @@ - - bool IsMainMenuWindow(); - GtkWidget* ConfigureWaylandPopupWindows(); -+ void PauseRemoteRenderer(); - void HideWaylandWindow(); - void HideWaylandTooltips(); - void HideWaylandPopupAndAllChildren(); -diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp ---- a/widget/gtk/nsWindow.cpp -+++ b/widget/gtk/nsWindow.cpp -@@ -1386,10 +1386,10 @@ - } - - if (needsPositionUpdate && needsSizeUpdate) { -- Resize(newBounds.x, newBounds.y, newBounds.width, newBounds.height, true); -+ mBounds = newBounds; - NotifyWindowMoved(newBounds.x, newBounds.y); - } else if (needsPositionUpdate) { -- Move(newBounds.x, newBounds.y); -+ mBounds = newBounds; - NotifyWindowMoved(newBounds.x, newBounds.y); - } else { - Resize(newBounds.width, newBounds.height, true); -@@ -1476,6 +1476,7 @@ - bool isWidgetVisible = - (sGtkWidgetIsVisible != nullptr) && sGtkWidgetIsVisible(mShell); - if (isWidgetVisible) { -+ PauseRemoteRenderer(); - gtk_widget_hide(mShell); - } - -@@ -4497,16 +4498,8 @@ - } - } - --void nsWindow::HideWaylandWindow() { -+void nsWindow::PauseRemoteRenderer() { - #ifdef MOZ_WAYLAND -- if (mWindowType == eWindowType_popup) { -- LOG(("nsWindow::HideWaylandWindow: popup [%p]\n", this)); -- GList* foundWindow = g_list_find(gVisibleWaylandPopupWindows, this); -- if (foundWindow) { -- gVisibleWaylandPopupWindows = -- g_list_delete_link(gVisibleWaylandPopupWindows, foundWindow); -- } -- } - if (!mIsDestroyed) { - if (mContainer && moz_container_has_wl_egl_window(mContainer)) { - // Because wl_egl_window is destroyed on moz_container_unmap(), -@@ -4529,6 +4522,18 @@ - } - } - #endif -+} -+ -+void nsWindow::HideWaylandWindow() { -+ if (mWindowType == eWindowType_popup) { -+ LOG(("nsWindow::HideWaylandWindow: popup [%p]\n", this)); -+ GList* foundWindow = g_list_find(gVisibleWaylandPopupWindows, this); -+ if (foundWindow) { -+ gVisibleWaylandPopupWindows = -+ g_list_delete_link(gVisibleWaylandPopupWindows, foundWindow); -+ } -+ } -+ PauseRemoteRenderer(); - gtk_widget_hide(mShell); - } - - |