Revert "Stop crashing on idle"
This reverts commit ed906d372c
.
Something is wrong with the buildroot, so this failed to build. A more
comprehensive fix is incoming that won't conflict with this patch, so
let's remove the patch now so I don't forget....
This commit is contained in:
parent
ed906d372c
commit
836f6166c8
@ -30,9 +30,6 @@ Patch1: mutter-42.alpha-disable-tegra.patch
|
||||
# https://pagure.io/fedora-workstation/issue/79
|
||||
Patch2: 0001-place-Always-center-initial-setup-fedora-welcome.patch
|
||||
|
||||
# https://gitlab.gnome.org/GNOME/mutter/-/issues/2985
|
||||
Patch3: stop-crashing.patch
|
||||
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.41.0
|
||||
BuildRequires: pkgconfig(sm)
|
||||
BuildRequires: pkgconfig(libwacom)
|
||||
|
@ -1,34 +0,0 @@
|
||||
diff --git a/src/backends/native/meta-output-kms.c b/src/backends/native/meta-output-kms.c
|
||||
index 0e7d0a9eb..d50deb421 100644
|
||||
--- a/src/backends/native/meta-output-kms.c
|
||||
+++ b/src/backends/native/meta-output-kms.c
|
||||
@@ -134,6 +134,9 @@ meta_output_kms_get_privacy_screen_state (MetaOutput *output)
|
||||
connector_state =
|
||||
meta_kms_connector_get_current_state (output_kms->kms_connector);
|
||||
|
||||
+ if (!connector_state)
|
||||
+ return FALSE;
|
||||
+
|
||||
return connector_state->privacy_screen_state;
|
||||
}
|
||||
|
||||
@@ -153,6 +156,9 @@ meta_output_kms_is_color_space_supported (MetaOutput *output,
|
||||
connector_state =
|
||||
meta_kms_connector_get_current_state (output_kms->kms_connector);
|
||||
|
||||
+ if (!connector_state)
|
||||
+ return FALSE;
|
||||
+
|
||||
if (!(connector_state->colorspace.supported & (1 << color_space)))
|
||||
return FALSE;
|
||||
|
||||
@@ -168,6 +174,9 @@ meta_output_kms_is_hdr_metadata_supported (MetaOutput *output)
|
||||
connector_state =
|
||||
meta_kms_connector_get_current_state (output_kms->kms_connector);
|
||||
|
||||
+ if (!connector_state)
|
||||
+ return FALSE;
|
||||
+
|
||||
return connector_state->hdr.supported;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user