Stop crashing on idle
Currently whenever GNOME becomes idle, it crashes. This adds some NULL pointer guards to avoid crashing. https://bugzilla.redhat.com/show_bug.cgi?id=2231680
This commit is contained in:
		
							parent
							
								
									56abe601d3
								
							
						
					
					
						commit
						ed906d372c
					
				| @ -30,6 +30,9 @@ 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) | ||||
|  | ||||
							
								
								
									
										34
									
								
								stop-crashing.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								stop-crashing.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| 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