mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Cleanup
This commit is contained in:
parent
d88347ee7d
commit
5b306f0390
@ -443,10 +443,9 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
|
|||||||
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
||||||
{
|
{
|
||||||
MirSurfaceSpec* spec;
|
MirSurfaceSpec* spec;
|
||||||
const char* e_title = title ? title : "";
|
|
||||||
|
|
||||||
spec = mir_connection_create_spec_for_changes(_glfw.mir.connection);
|
spec = mir_connection_create_spec_for_changes(_glfw.mir.connection);
|
||||||
mir_surface_spec_set_name(spec, e_title);
|
mir_surface_spec_set_name(spec, title);
|
||||||
|
|
||||||
mir_surface_apply_spec(window->mir.surface, spec);
|
mir_surface_apply_spec(window->mir.surface, spec);
|
||||||
mir_surface_spec_release(spec);
|
mir_surface_spec_release(spec);
|
||||||
|
Loading…
Reference in New Issue
Block a user