summaryrefslogtreecommitdiffstats
path: root/x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch')
-rw-r--r--x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch b/x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch
new file mode 100644
index 0000000..a9c7bbf
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch
@@ -0,0 +1,28 @@
+--- 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;
+ }