/* Debugging category */
#include <gst/gstinfo.h>
+/* For getpid */
+#include <unistd.h>
+
/* for XkbKeycodeToKeysym */
#include <X11/XKBlib.h>
XSetClassHint (ximagesink->xcontext->disp, xwindow->win, hint);
}
XFree (hint);
+
+ unsigned long pid = getpid ();
+ Atom _NET_WM_PID =
+ XInternAtom (ximagesink->xcontext->disp, "_NET_WM_PID", 0);
+ XChangeProperty (ximagesink->xcontext->disp, xwindow->win,
+ _NET_WM_PID, _NET_WM_PID, 32, 0, (unsigned char *) &pid, 1);
}
}
}
/* Debugging category */
#include <gst/gstinfo.h>
+/* for getpid */
+#include <unistd.h>
+
/* for XkbKeycodeToKeysym */
#include <X11/XKBlib.h>
g_free (hints);
}
+ unsigned long pid = getpid ();
+ Atom _NET_WM_PID = XInternAtom (context->disp, "_NET_WM_PID", 0);
+ XChangeProperty (context->disp, window->win,
+ _NET_WM_PID, _NET_WM_PID, 32, 0, (unsigned char *) &pid, 1);
+
window->gc = XCreateGC (context->disp, window->win, 0, NULL);
XMapRaised (context->disp, window->win);