Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-09-15 00:17:56 +0400
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-09-15 00:17:56 +0400
commit1b2344a1f1c2d1a8e0a914c1eb46bf4e36323c66 (patch)
tree99ae29fa6de49f3a1ac24ef1159bd7d496c30a51
parentf302ebeb670f021d627388ab7f0e1fc682183250 (diff)
Also set utf8 encoded hint for window title.
-rw-r--r--intern/ghost/intern/GHOST_WindowX11.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index 88ae8afd0ce..3aff9d64a17 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -294,7 +294,7 @@ GHOST_WindowX11(
}
// Create some hints for the window manager on how
- // we want this window treated.
+ // we want this window treated.
XSizeHints * xsizehints = XAllocSizeHints();
xsizehints->flags = USPosition | USSize;
@@ -514,7 +514,7 @@ GHOST_WindowX11::
getXWindow(
){
return m_window;
-}
+}
bool
GHOST_WindowX11::
@@ -528,7 +528,17 @@ GHOST_WindowX11::
setTitle(
const STR_String& title
){
+ Atom name = XInternAtom(m_display, "_NET_WM_NAME", 0);
+ Atom utf8str = XInternAtom(m_display, "UTF8_STRING", 0);
+ XChangeProperty(m_display, m_window,
+ name, utf8str, 8, PropModeReplace,
+ (const unsigned char*) title.ReadPtr(),
+ strlen(title.ReadPtr()));
+
+// This should convert to valid x11 string
+// and getTitle would need matching change
XStoreName(m_display,m_window,title);
+
XFlush(m_display);
}