aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-07-07 11:53:07 -0400
committerKen Moore <moorekou@gmail.com>2016-07-07 11:53:07 -0400
commit6f1913f29cd26aa7ae97e64b5872cd86de86c566 (patch)
tree98afde7d2f96247e373faa05553bf160c9cf201d /src-qt5
parentEnsure the checkbox for loading desktop icons properly reflects the setting i... (diff)
downloadlumina-6f1913f29cd26aa7ae97e64b5872cd86de86c566.tar.gz
lumina-6f1913f29cd26aa7ae97e64b5872cd86de86c566.tar.bz2
lumina-6f1913f29cd26aa7ae97e64b5872cd86de86c566.zip
Fix the xterm title gibberish issue.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/LuminaX11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LuminaX11.cpp b/src-qt5/core/libLumina/LuminaX11.cpp
index 31720e72..2aec76e3 100644
--- a/src-qt5/core/libLumina/LuminaX11.cpp
+++ b/src-qt5/core/libLumina/LuminaX11.cpp
@@ -393,7 +393,7 @@ QString LXCB::OldWindowName(WId win){ //WM_NAME (old standard)
xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_name_unchecked(QX11Info::connection(), win);
xcb_icccm_get_text_property_reply_t reply;
if(1 == xcb_icccm_get_wm_name_reply(QX11Info::connection(), cookie, &reply, NULL) ){
- QString name = QString::fromLocal8Bit(reply.name);
+ QString name = QString::fromLocal8Bit(reply.name, reply.name_len);
xcb_icccm_get_text_property_reply_wipe(&reply);
return name;
}else{
@@ -408,7 +408,7 @@ QString LXCB::OldWindowIconName(WId win){ //WM_ICON_NAME (old standard)
xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_icon_name_unchecked(QX11Info::connection(), win);
xcb_icccm_get_text_property_reply_t reply;
if(1 == xcb_icccm_get_wm_icon_name_reply(QX11Info::connection(), cookie, &reply, NULL) ){
- QString name = QString::fromLocal8Bit(reply.name);
+ QString name = QString::fromLocal8Bit(reply.name, reply.name_len);
xcb_icccm_get_text_property_reply_wipe(&reply);
return name;
}else{
bgstack15