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