mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 00:14:09 +00:00
Consistently pass timestamp as uint64 when creating MetaStartupSequence
Passing the wrong type to a varargs function can cause a mismatch between marshalling and unmarshalling on the stack, particularly on 32-bit architectures. This results in a build-time test failure. Resolves: https://gitlab.gnome.org/GNOME/mutter/-/issues/2065 Signed-off-by: Simon McVittie <smcv@debian.org> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2182>
This commit is contained in:
parent
449327093e
commit
4bc5833144
@ -180,7 +180,7 @@ meta_launch_context_get_startup_notify_id (GAppLaunchContext *launch_context,
|
||||
"application-id", application_id,
|
||||
"name", g_app_info_get_name (info),
|
||||
"workspace", workspace_idx,
|
||||
"timestamp", context->timestamp,
|
||||
"timestamp", (uint64_t) context->timestamp,
|
||||
NULL);
|
||||
|
||||
meta_startup_notification_add_sequence (sn, seq);
|
||||
|
@ -149,7 +149,7 @@ token_commit (struct wl_client *client,
|
||||
MetaXdgActivationToken *token = wl_resource_get_user_data (resource);
|
||||
MetaWaylandActivation *activation = token->activation;
|
||||
MetaDisplay *display = meta_get_display ();
|
||||
uint32_t timestamp;
|
||||
uint64_t timestamp;
|
||||
|
||||
if (token->committed)
|
||||
{
|
||||
|
@ -535,7 +535,7 @@ gtk_shell_notify_launch (struct wl_client *client,
|
||||
{
|
||||
MetaDisplay *display = meta_get_display ();
|
||||
MetaStartupSequence *sequence;
|
||||
uint32_t timestamp;
|
||||
uint64_t timestamp;
|
||||
|
||||
sequence = meta_startup_notification_lookup_sequence (display->startup_notification,
|
||||
startup_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user