mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
25 lines
1 KiB
Diff
25 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: stransky <stransky@redhat.com>
|
|
Date: Thu, 15 Dec 2022 08:09:22 +0000
|
|
Subject: [PATCH] Bug 1804973 [Wayland] Check size for valid EGLWindows only
|
|
r=emilio
|
|
|
|
Differential Revision: https://phabricator.services.mozilla.com/D164651
|
|
---
|
|
widget/gtk/MozContainerWayland.cpp | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/widget/gtk/MozContainerWayland.cpp b/widget/gtk/MozContainerWayland.cpp
|
|
index 954c650af533..2a4a492077c3 100644
|
|
--- a/widget/gtk/MozContainerWayland.cpp
|
|
+++ b/widget/gtk/MozContainerWayland.cpp
|
|
@@ -704,6 +704,9 @@ bool moz_container_wayland_egl_window_needs_size_update(MozContainer* container,
|
|
nsIntSize aSize,
|
|
int aScale) {
|
|
MozContainerWayland* wl_container = &container->wl_container;
|
|
+ if (!wl_container->eglwindow) {
|
|
+ return false;
|
|
+ }
|
|
if (wl_container->buffer_scale != aScale) {
|
|
return true;
|
|
}
|