Allow to set window caption

This commit is contained in:
Deve 2017-05-25 20:49:10 +02:00
parent 0c18090669
commit b5f2e4d163

View File

@ -912,6 +912,14 @@ void CIrrDeviceWayland::sleep(u32 timeMs, bool pauseTimer=false)
//! sets the caption of the window
void CIrrDeviceWayland::setWindowCaption(const wchar_t* text)
{
if (!m_shell_surface)
return;
char title[1024];
wcstombs(title, text, sizeof(title));
title[1023] = '\0';
wl_shell_surface_set_title(m_shell_surface, title);
}
//! presents a surface in the client area