diff options
Diffstat (limited to 'src/SlitClient.cc')
-rw-r--r-- | src/SlitClient.cc | 12 |
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 | ||
35 | SlitClient::SlitClient(const char *name):m_match_name(name == 0 ? "" : name) { | 36 | SlitClient::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 | ||
58 | void SlitClient::disableEvents() { | 60 | void SlitClient::disableEvents() { |