Allow to set window caption
This commit is contained in:
parent
0c18090669
commit
b5f2e4d163
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user