aboutsummaryrefslogtreecommitdiff
path: root/src/Xutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xutil.cc')
-rw-r--r--src/Xutil.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/Xutil.cc b/src/Xutil.cc
index e179857..dfaccf9 100644
--- a/src/Xutil.cc
+++ b/src/Xutil.cc
@@ -21,6 +21,7 @@
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23#include "Xutil.hh" 23#include "Xutil.hh"
24#include "Debug.hh"
24 25
25#include "FbTk/I18n.hh" 26#include "FbTk/I18n.hh"
26#include "FbTk/App.hh" 27#include "FbTk/App.hh"
@@ -37,11 +38,8 @@
37 38
38using std::string; 39using std::string;
39using std::strlen; 40using std::strlen;
40
41#ifdef DEBUG
42using std::cerr;
43using std::endl; 41using std::endl;
44#endif // DEBUG 42
45 43
46namespace Xutil { 44namespace Xutil {
47 45
@@ -97,9 +95,8 @@ string getWMClassName(Window win) {
97 string instance_name; 95 string instance_name;
98 96
99 if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) { 97 if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) {
100#ifdef DEBUG 98 fbdbg<<"Xutil: Failed to read class hint!"<<endl;
101 cerr<<"Xutil: Failed to read class hint!"<<endl; 99
102#endif //DEBUG
103 instance_name = ""; 100 instance_name = "";
104 } else { 101 } else {
105 102
@@ -123,9 +120,7 @@ string getWMClassClass(Window win) {
123 string class_name; 120 string class_name;
124 121
125 if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) { 122 if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) {
126#ifdef DEBUG 123 fbdbg<<"Xutil: Failed to read class hint!"<<endl;
127 cerr<<"Xutil: Failed to read class hint!"<<endl;
128#endif //DEBUG
129 class_name = ""; 124 class_name = "";
130 } else { 125 } else {
131 126