]> Pileus Git - ~andy/gtk/commitdiff
Set _NET_WM_PID and WM_CLIENT_MACHINE properties on each window, not just
authorOwen Taylor <otaylor@redhat.com>
Wed, 19 Sep 2001 22:09:17 +0000 (22:09 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 19 Sep 2001 22:09:17 +0000 (22:09 +0000)
Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
window, not just on the client leader. (#58463)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkwindow-x11.c

index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index d9bdd2e87b5aedd064f7cdc29275c58b11c9adee..cb52f8f1a970788d821f0683994c89202200528c 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
+       _NET_WM_PID and WM_CLIENT_MACHINE properties on each
+       window, not just on the client leader. (#58463)
+
 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
index f5a65e6acd06ec665c2f4df0644baefdb687ba8b..262aa9f0da4e3381c179f7dba67b95037a0dbbab 100644 (file)
@@ -28,6 +28,7 @@
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #include <netinet/in.h>
+#include <unistd.h>
 #include "gdk.h"
 #include "config.h"
 
@@ -326,6 +327,7 @@ gdk_window_new (GdkWindow     *parent,
   unsigned int class;
   char *title;
   int i;
+  int pid;
   
   g_return_val_if_fail (attributes != NULL, NULL);
   
@@ -578,6 +580,16 @@ gdk_window_new (GdkWindow     *parent,
   
   if (!wm_client_leader_atom)
     wm_client_leader_atom = gdk_atom_intern ("WM_CLIENT_LEADER", FALSE);
+
+  /* This will set WM_CLIENT_MACHINE and WM_LOCALE_NAME */
+  XSetWMProperties (xdisplay, xid, NULL, NULL, NULL, 0, NULL, NULL, NULL);
+
+  pid = getpid ();
+  XChangeProperty (xdisplay, xid,
+                  gdk_atom_intern ("_NET_WM_PID", FALSE),
+                  XA_CARDINAL, 32,
+                  PropModeReplace,
+                  (guchar *)&pid, 1);
   
   XChangeProperty (xdisplay, xid,
                   wm_client_leader_atom,