From 3265eb2f6d367ccb87c4113a46767b8b0867e889 Mon Sep 17 00:00:00 2001 From: dma Date: Thu, 25 Oct 2018 19:28:13 -0400 Subject: [PATCH] Patch mutter to expose get_client_pid() through MetaWindow introspection --- .../recipes-gnome/mutter/mutter/get_client_pid.patch | 10 ++++++++++ meta-gnome/recipes-gnome/mutter/mutter_3.28.0.bb | 1 + 2 files changed, 11 insertions(+) create mode 100644 meta-gnome/recipes-gnome/mutter/mutter/get_client_pid.patch diff --git a/meta-gnome/recipes-gnome/mutter/mutter/get_client_pid.patch b/meta-gnome/recipes-gnome/mutter/mutter/get_client_pid.patch new file mode 100644 index 0000000..e1b73e6 --- /dev/null +++ b/meta-gnome/recipes-gnome/mutter/mutter/get_client_pid.patch @@ -0,0 +1,10 @@ +--- a/src/meta/window.h 2018-03-12 18:45:19.000000000 +0000 ++++ b/src/meta/window.h 2018-10-25 18:15:11.258297608 +0000 +@@ -205,6 +205,7 @@ + guint meta_window_get_stable_sequence (MetaWindow *window); + guint32 meta_window_get_user_time (MetaWindow *window); + int meta_window_get_pid (MetaWindow *window); ++guint32 meta_window_get_client_pid (MetaWindow *window); + const char *meta_window_get_client_machine (MetaWindow *window); + gboolean meta_window_is_remote (MetaWindow *window); + gboolean meta_window_is_attached_dialog (MetaWindow *window); diff --git a/meta-gnome/recipes-gnome/mutter/mutter_3.28.0.bb b/meta-gnome/recipes-gnome/mutter/mutter_3.28.0.bb index cd4205a..203825f 100644 --- a/meta-gnome/recipes-gnome/mutter/mutter_3.28.0.bb +++ b/meta-gnome/recipes-gnome/mutter/mutter_3.28.0.bb @@ -7,6 +7,7 @@ SRC_URI_append = "\ file://0001-remove-check-for-zenity.patch \ file://0002-avoid-unnecessary-relayouts-in-cluttertext.patch \ file://startup-notification.patch \ + file://get_client_pid.patch \ " DEPENDS = "libxrandr libsm libx11 libxi glib-2.0 wayland-protocols libwacom mesa gtk+3 pango cairo gsettings-desktop-schemas xcomposite upower gnome-desktop libxkbfile json-glib wayland-native xinerama zenity libinput libcanberra"