mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Wayland: Move window title cloning to creation
This commit is contained in:
parent
7bede13b1d
commit
c1ecd4673e
@ -638,6 +638,7 @@ static GLFWbool createSurface(_GLFWwindow* window,
|
|||||||
window->wl.width = wndconfig->width;
|
window->wl.width = wndconfig->width;
|
||||||
window->wl.height = wndconfig->height;
|
window->wl.height = wndconfig->height;
|
||||||
window->wl.scale = 1;
|
window->wl.scale = 1;
|
||||||
|
window->wl.title = _glfw_strdup(wndconfig->title);
|
||||||
|
|
||||||
window->wl.transparent = fbconfig->transparent;
|
window->wl.transparent = fbconfig->transparent;
|
||||||
if (!window->wl.transparent)
|
if (!window->wl.transparent)
|
||||||
@ -805,9 +806,6 @@ int _glfwCreateWindowWayland(_GLFWwindow* window,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wndconfig->title)
|
|
||||||
window->wl.title = _glfw_strdup(wndconfig->title);
|
|
||||||
|
|
||||||
window->wl.currentCursor = NULL;
|
window->wl.currentCursor = NULL;
|
||||||
|
|
||||||
window->wl.monitors = _glfw_calloc(1, sizeof(_GLFWmonitor*));
|
window->wl.monitors = _glfw_calloc(1, sizeof(_GLFWmonitor*));
|
||||||
|
Loading…
Reference in New Issue
Block a user