mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Added setting of _NET_WM_PID.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user