Browse Source

Set X11 utf8 window title for plugin UIs

tags/v2.5.1
falkTX 2 years ago
parent
commit
c7b4ee9c39
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      source/utils/CarlaPluginUI.cpp

+ 8
- 0
source/utils/CarlaPluginUI.cpp View File

@@ -428,6 +428,14 @@ public:
CARLA_SAFE_ASSERT_RETURN(fHostWindow != 0,); CARLA_SAFE_ASSERT_RETURN(fHostWindow != 0,);


XStoreName(fDisplay, fHostWindow, title); 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 void setTransientWinId(const uintptr_t winId) override


Loading…
Cancel
Save