diff options
author | Martin Stransky <stransky@redhat.com> | 2021-02-24 12:39:29 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2021-02-24 12:39:29 +0100 |
commit | 5f5997630b7c54c52469e15a8a6b2d6e230559a1 (patch) | |
tree | 534bba722aa6348a46b7f1b3323b4ea2bf798e57 /mozilla-1678247.patch | |
parent | Merge branch 'main' into f33 (diff) | |
download | librewolf-fedora-ff-5f5997630b7c54c52469e15a8a6b2d6e230559a1.tar.gz librewolf-fedora-ff-5f5997630b7c54c52469e15a8a6b2d6e230559a1.tar.bz2 librewolf-fedora-ff-5f5997630b7c54c52469e15a8a6b2d6e230559a1.zip |
Updated to 86.0
Diffstat (limited to 'mozilla-1678247.patch')
-rw-r--r-- | mozilla-1678247.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/mozilla-1678247.patch b/mozilla-1678247.patch deleted file mode 100644 index 5effad4..0000000 --- a/mozilla-1678247.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff --git a/widget/gtk/MozContainerWayland.cpp b/widget/gtk/MozContainerWayland.cpp ---- a/widget/gtk/MozContainerWayland.cpp -+++ b/widget/gtk/MozContainerWayland.cpp -@@ -22,6 +22,7 @@ - # include "mozilla/Logging.h" - # include "nsTArray.h" - # include "Units.h" -+# include "nsWindow.h" - extern mozilla::LazyLogModule gWidgetWaylandLog; - # define LOGWAYLAND(args) \ - MOZ_LOG(gWidgetWaylandLog, mozilla::LogLevel::Debug, args) -@@ -343,21 +344,19 @@ - moz_container_wayland_set_opaque_region_locked(container); - } - --static int moz_gtk_widget_get_scale_factor(MozContainer* container) { -- static auto sGtkWidgetGetScaleFactor = -- (gint(*)(GtkWidget*))dlsym(RTLD_DEFAULT, "gtk_widget_get_scale_factor"); -- return sGtkWidgetGetScaleFactor -- ? sGtkWidgetGetScaleFactor(GTK_WIDGET(container)) -- : 1; --} -- - static void moz_container_wayland_set_scale_factor_locked( - MozContainer* container) { - if (!container->wl_container.surface) { - return; - } -- wl_surface_set_buffer_scale(container->wl_container.surface, -- moz_gtk_widget_get_scale_factor(container)); -+ gpointer user_data = g_object_get_data(G_OBJECT(container), "nsWindow"); -+ nsWindow* wnd = static_cast<nsWindow*>(user_data); -+ -+ int scale = 1; -+ if (wnd) { -+ scale = wnd->GdkScaleFactor(); -+ } -+ wl_surface_set_buffer_scale(container->wl_container.surface, scale); - } - - void moz_container_wayland_set_scale_factor(MozContainer* container) { - |