diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-09-28 16:45:40 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-09-28 16:45:40 +0200 |
commit | 4edbbf4b5541d31c69fc8886c9295334d43ca081 (patch) | |
tree | 441854623251f532097d7b62c9e33ceeb941301c | |
parent | e430027cfde4cedde46bd6d084bbdcd07ba11dff (diff) |
We don't need to care about converting the returned name string.
This is done inside of KDE.
-rw-r--r-- | kde/window-decorator/window.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kde/window-decorator/window.cpp b/kde/window-decorator/window.cpp index 28bb6105..e64dbe94 100644 --- a/kde/window-decorator/window.cpp +++ b/kde/window-decorator/window.cpp @@ -96,10 +96,7 @@ KWD::Window::Window (QWidget *parent, if (mType == Normal) { - if (wInfo.visibleName () && wInfo.visibleName ()[0] != '\0') - mName = QString::fromUtf8 (wInfo.visibleName ()); - else - mName = KWin::readNameProperty (mClientId, XA_WM_NAME); + mName = wInfo.visibleName (); mIcons = QIconSet (KWin::icon (mClientId, 16, 16, TRUE), KWin::icon (mClientId, 32, 32, TRUE)); @@ -1708,10 +1705,7 @@ KWD::Window::updateName (void) wInfo = KWin::windowInfo (window, NET::WMVisibleName, 0); - if (wInfo.visibleName () && wInfo.visibleName ()[0] != '\0') - mName = QString::fromUtf8 (wInfo.visibleName()); - else - mName = KWin::readNameProperty (window, XA_WM_NAME); + mName = wInfo.visibleName (); mDecor->captionChange (); } |