summaryrefslogtreecommitdiffstats
path: root/x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /x11-libs/gtk+/files/gtk+-1.2.10-cvs-netwmpid.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
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;
+ }