[metacity] bell: use meta_window_get_client_pid



commit c6584a38a234726c1128d044fd7cc5a0f8379c69
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Sep 12 14:17:03 2020 +0300

    bell: use meta_window_get_client_pid

 src/core/bell.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/core/bell.c b/src/core/bell.c
index 4b287082..cddd1f3c 100644
--- a/src/core/bell.c
+++ b/src/core/bell.c
@@ -285,10 +285,14 @@ meta_bell_notify (MetaDisplay *display,
 
       if (window)
         {
+          pid_t client_pid;
+
+          client_pid = meta_window_get_client_pid (window);
+
           ca_proplist_sets (p, CA_PROP_WINDOW_NAME, window->title);
           ca_proplist_setf (p, CA_PROP_WINDOW_X11_XID, "%lu", (unsigned long)window->xwindow);
           ca_proplist_sets (p, CA_PROP_APPLICATION_NAME, window->res_name);
-          ca_proplist_setf (p, CA_PROP_APPLICATION_PROCESS_ID, "%d", window->net_wm_pid);
+          ca_proplist_setf (p, CA_PROP_APPLICATION_PROCESS_ID, "%d", client_pid);
         }
 
       /* First, we try to play a real sound ... */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]