Add support for EWMH _NET_WM_WINDOW_TYPE

This commit is contained in:
Camilla Berglund
2016-03-14 20:47:48 +01:00
parent 86751b42a6
commit ea73ccf22d
3 changed files with 14 additions and 0 deletions
+8
View File
@@ -411,6 +411,14 @@ static GLFWbool createWindow(_GLFWwindow* window,
(unsigned char*) &pid, 1);
}
if (_glfw.x11.NET_WM_WINDOW_TYPE && _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL)
{
Atom type = _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL;
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_WINDOW_TYPE, XA_ATOM, 32,
PropModeReplace, (unsigned char*) &type, 1);
}
// Set ICCCM WM_HINTS property
{
XWMHints* hints = XAllocWMHints();