aboutsummaryrefslogtreecommitdiff
path: root/src/SlitClient.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/SlitClient.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/SlitClient.cc')
-rw-r--r--src/SlitClient.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/SlitClient.cc b/src/SlitClient.cc
index 04fa8c6..99f44e2 100644
--- a/src/SlitClient.cc
+++ b/src/SlitClient.cc
@@ -22,9 +22,10 @@
22#include "SlitClient.hh" 22#include "SlitClient.hh"
23 23
24#include "Screen.hh" 24#include "Screen.hh"
25#include "FbTk/App.hh"
26#include "Xutil.hh" 25#include "Xutil.hh"
27 26
27#include "FbTk/App.hh"
28
28#include <X11/Xutil.h> 29#include <X11/Xutil.h>
29#include <X11/Xatom.h> 30#include <X11/Xatom.h>
30 31
@@ -32,7 +33,8 @@ SlitClient::SlitClient(BScreen *screen, Window win) {
32 initialize(screen, win); 33 initialize(screen, win);
33} 34}
34 35
35SlitClient::SlitClient(const char *name):m_match_name(name == 0 ? "" : name) { 36SlitClient::SlitClient(const char *name) :
37 m_match_name(FbTk::BiDiString(!name ? "" : name)) {
36 initialize(); 38 initialize();
37} 39}
38 40
@@ -50,9 +52,9 @@ void SlitClient::initialize(BScreen *screen, Window win) {
50 move(0, 0); 52 move(0, 0);
51 resize(0, 0); 53 resize(0, 0);
52 54
53 if (matchName().empty()) 55 if (matchName().logical().empty())
54 m_match_name = Xutil::getWMClassName(clientWindow()); 56 m_match_name.setLogical(Xutil::getWMClassName(clientWindow()));
55 m_visible = true; 57 m_visible = true;
56} 58}
57 59
58void SlitClient::disableEvents() { 60void SlitClient::disableEvents() {