window: Use pid_t for get_client_pid() vfunc
It makes sense to use pid_t when getting the PID since that will work on all platforms and architectures. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1180
This commit is contained in:

committed by
Florian Müllner

parent
c971d6ea1f
commit
bc0b9f7628
@ -296,7 +296,7 @@ meta_window_real_update_icon (MetaWindow *window,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
static pid_t
|
||||
meta_window_real_get_client_pid (MetaWindow *window)
|
||||
{
|
||||
return 0;
|
||||
@ -7595,7 +7595,7 @@ meta_window_get_pid (MetaWindow *window)
|
||||
{
|
||||
g_return_val_if_fail (META_IS_WINDOW (window), 0);
|
||||
|
||||
return META_WINDOW_GET_CLASS (window)->get_client_pid (window);
|
||||
return (uint32_t)META_WINDOW_GET_CLASS (window)->get_client_pid (window);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user