aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
commit690d926ac444243611cd875fb84fabb4e6db2cf2 (patch)
treec8ef84056b295071f9a9207ffea5393c6cf4ad4d /src/WinClient.cc
parent1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff)
downloadfluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.zip
fluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.tar.bz2
introduced FbTk::BidiString
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r--src/WinClient.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc
index 7a10c12..a276dc1 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -340,14 +340,14 @@ void WinClient::updateTitle() {
340 if (m_title_override) 340 if (m_title_override)
341 return; 341 return;
342 342
343 m_title = string(Xutil::getWMName(window()), 0, 512); 343 m_title.setLogical(FbTk::FbString(Xutil::getWMName(window()), 0, 512));
344 titleSig().emit(m_title, *this); 344 titleSig().emit(m_title.logical(), *this);
345} 345}
346 346
347void WinClient::setTitle(const FbTk::FbString &title) { 347void WinClient::setTitle(const FbTk::FbString &title) {
348 m_title = title; 348 m_title.setLogical(title);
349 m_title_override = true; 349 m_title_override = true;
350 titleSig().emit(m_title, *this); 350 titleSig().emit(m_title.logical(), *this);
351} 351}
352 352
353void WinClient::setIcon(const FbTk::PixmapWithMask& pm) { 353void WinClient::setIcon(const FbTk::PixmapWithMask& pm) {
@@ -355,7 +355,7 @@ void WinClient::setIcon(const FbTk::PixmapWithMask& pm) {
355 m_icon.pixmap().copy(pm.pixmap()); 355 m_icon.pixmap().copy(pm.pixmap());
356 m_icon.mask().copy(pm.mask()); 356 m_icon.mask().copy(pm.mask());
357 m_icon_override = true; 357 m_icon_override = true;
358 titleSig().emit(m_title, *this); 358 titleSig().emit(m_title.logical(), *this);
359} 359}
360 360
361void WinClient::setFluxboxWindow(FluxboxWindow *win) { 361void WinClient::setFluxboxWindow(FluxboxWindow *win) {