mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
kms/impl-device: Reverse update merge order in process_mode_set_update
This makes sure the new update takes effect over the pending update for
any common properties. It matches the other users of
meta_kms_update_merge_from.
Fixes: 27ed069766
("kms/impl-device: Add deadline based KMS commit scheduling")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3316>
This commit is contained in:
parent
74b9d46d7c
commit
83b762e0e4
@ -1597,8 +1597,9 @@ process_mode_set_update (MetaKmsImplDevice *impl_device,
|
||||
if (!crtc_frame->pending_update)
|
||||
continue;
|
||||
|
||||
meta_kms_update_merge_from (update, crtc_frame->pending_update);
|
||||
g_clear_pointer (&crtc_frame->pending_update, meta_kms_update_free);
|
||||
meta_kms_update_merge_from (crtc_frame->pending_update, update);
|
||||
meta_kms_update_free (update);
|
||||
update = g_steal_pointer (&crtc_frame->pending_update);
|
||||
}
|
||||
|
||||
g_hash_table_iter_init (&iter, priv->crtc_frames);
|
||||
|
Loading…
Reference in New Issue
Block a user