From c7b4ee9c39ad5a3e7e6114007d6114ea3aece66c Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 9 Aug 2022 13:50:27 +0100 Subject: [PATCH] Set X11 utf8 window title for plugin UIs --- source/utils/CarlaPluginUI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/utils/CarlaPluginUI.cpp b/source/utils/CarlaPluginUI.cpp index dd91877c6..eba303c99 100644 --- a/source/utils/CarlaPluginUI.cpp +++ b/source/utils/CarlaPluginUI.cpp @@ -428,6 +428,14 @@ public: CARLA_SAFE_ASSERT_RETURN(fHostWindow != 0,); XStoreName(fDisplay, fHostWindow, title); + + const Atom _nwn = XInternAtom(fDisplay, "_NET_WM_NAME", False); + const Atom utf8 = XInternAtom(fDisplay, "UTF8_STRING", True); + + XChangeProperty(fDisplay, fHostWindow, _nwn, utf8, 8, + PropModeReplace, + (const uchar*)(title), + (int)strlen(title)); } void setTransientWinId(const uintptr_t winId) override