aboutsummaryrefslogtreecommitdiff
path: root/src/Xutil.cc
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
commitce0b41c8472135898a553d6d649d852beb80cffb (patch)
tree8cca2f6d8795c19c86ab70fa22e9c724e5f4453b /src/Xutil.cc
parent7a86dad21b1d50b35857496c165e4e85cc0d2bd3 (diff)
downloadfluxbox-ce0b41c8472135898a553d6d649d852beb80cffb.zip
fluxbox-ce0b41c8472135898a553d6d649d852beb80cffb.tar.bz2
Changed #ifdef DEBUG ... cerr << to using fbdbg.
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
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