Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 9a71895abfb6f490d4fa44e008936a18 > files > 21

gtk+-1.2.10-50mdv2009.0.src.rpm

--- gtk-1.2.10/gdkwindow.c	Tue Jan 22 16:42:19 2002
+++ gtk/gdk/gdkwindow.c	Sat Oct 13 17:10:16 2001
@@ -28,6 +28,9 @@
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #include <netinet/in.h>
+#include <sys/types.h>
+#include <unistd.h>
+
 #include "gdk.h"
 #include "config.h"
 #include "gdkinput.h"
@@ -488,6 +491,15 @@
       XFree (class_hint);
     }
   
+  {
+    gulong pid = getpid ();
+    
+    XChangeProperty (private->xdisplay, private->xwindow,
+                     gdk_atom_intern ("_NET_WM_PID", FALSE),
+                     XA_CARDINAL, 32,
+                     PropModeReplace,
+                     (guchar *)&pid, 1);
+  }
   
   return window;
 }