mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 17:29:31 +00:00
Fix segfaults on 32-bit systems.
The new "id" properties for the MetaCrtc* and MetaOuput* objects are 64-bit values, so take care to pass 64-bit values when calling g_object_new. Fixes https://gitlab.gnome.org/GNOME/mutter/-/issues/1343.
This commit is contained in:

committed by
Jonas Ådahl

parent
ac6990ef51
commit
7b79fcee45
@ -291,7 +291,7 @@ meta_crtc_kms_new (MetaGpuKms *gpu_kms,
|
||||
primary_plane = meta_kms_device_get_primary_plane_for (kms_device,
|
||||
kms_crtc);
|
||||
crtc_kms = g_object_new (META_TYPE_CRTC_KMS,
|
||||
"id", meta_kms_crtc_get_id (kms_crtc),
|
||||
"id", (uint64_t) meta_kms_crtc_get_id (kms_crtc),
|
||||
"gpu", gpu,
|
||||
NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user