diff --git a/GLMakie/src/screen.jl b/GLMakie/src/screen.jl index 5d2012b1187..58d7c6ec8b6 100644 --- a/GLMakie/src/screen.jl +++ b/GLMakie/src/screen.jl @@ -440,6 +440,20 @@ function set_screen_visibility!(nw::GLFW.Window, visible::Bool) GLFW.set_visibility!(nw, visible) end +function set_screen_title!(screen::Screen, title::String) + if !screen.owns_glscreen + error(unimplemented_error) + end + + set_screen_title!(screen.glscreen, title) + screen.config.title = title +end + +function set_screen_title!(nw::GLFW.Window, title::String) + @assert nw.handle !== C_NULL + GLFW.SetWindowTitle(nw, title) +end + function display_scene!(screen::Screen, scene::Scene) @debug("display scene on screen") resize!(screen, size(scene)...)