summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/nativewindow_win32.cc1
-rw-r--r--plugingui/nativewindow_x11.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index f7044db..8a0b912 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -134,6 +134,7 @@ void GUI::NativeWindowWin32::redraw()
void GUI::NativeWindowWin32::setCaption(const std::string &caption)
{
+ SetWindowText(gctx->m_hwnd, caption.c_str());
}
void GUI::NativeWindowWin32::grabMouse(bool grab)
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index c7605ef..79349dd 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -227,6 +227,7 @@ void GUI::NativeWindowX11::redraw()
void GUI::NativeWindowX11::setCaption(const std::string &caption)
{
+ XStoreName(gctx->display, xwindow, caption.c_str());
}
void GUI::NativeWindowX11::grabMouse(bool grab)