Added setting of _NET_WM_PID.

This commit is contained in:
Camilla Berglund
2013-05-02 16:31:27 +02:00
parent 5cf56a442c
commit be28914732
3 changed files with 14 additions and 0 deletions
+10
View File
@@ -204,6 +204,16 @@ static GLboolean createWindow(_GLFWwindow* window,
}
}
if (_glfw.x11.NET_WM_PID != None)
{
const pid_t pid = getpid();
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_PID, XA_CARDINAL, 32,
PropModeReplace,
(unsigned char*) &pid, 1);
}
// Set ICCCM WM_HINTS property
{
XWMHints* hints = XAllocWMHints();