summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-12 14:17:03 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-12 14:34:07 +0300
commitc6584a38a234726c1128d044fd7cc5a0f8379c69 (patch)
treeeef067a34e5a29bf74985aa06164f224e949397a
parentdade470e13292c58822b0c180019caf0ea3862f3 (diff)
downloadmetacity-c6584a38a234726c1128d044fd7cc5a0f8379c69.tar.gz
bell: use meta_window_get_client_pid
-rw-r--r--src/core/bell.c6
1 files changed, 5 insertions, 1 deletions
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 ... */