summaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index bcc2051..fb3da30 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -53,6 +53,8 @@
53#include "SlitTheme.hh" 53#include "SlitTheme.hh"
54#include "SlitClient.hh" 54#include "SlitClient.hh"
55#include "Xutil.hh" 55#include "Xutil.hh"
56#include "Debug.hh"
57
56#include "FbTk/App.hh" 58#include "FbTk/App.hh"
57#include "FbTk/MenuSeparator.hh" 59#include "FbTk/MenuSeparator.hh"
58#include "FbTk/StringUtil.hh" 60#include "FbTk/StringUtil.hh"
@@ -82,12 +84,8 @@ using std::list;
82using std::ifstream; 84using std::ifstream;
83using std::ofstream; 85using std::ofstream;
84using std::endl; 86using std::endl;
85
86#ifdef DEBUG
87using std::cerr;
88using std::hex; 87using std::hex;
89using std::dec; 88using std::dec;
90#endif // DEBUG
91 89
92namespace FbTk { 90namespace FbTk {
93 91
@@ -393,9 +391,9 @@ void Slit::updateStrut() {
393} 391}
394 392
395void Slit::addClient(Window w) { 393void Slit::addClient(Window w) {
396#ifdef DEBUG 394
397 cerr<<__FILE__": addClient(w = 0x"<<hex<<w<<dec<<")"<<endl; 395 fbdbg<<"addClient(w = 0x"<<hex<<w<<dec<<")"<<endl;
398#endif // DEBUG 396
399 // Can't add non existent window 397 // Can't add non existent window
400 if (w == None) 398 if (w == None)
401 return; 399 return;
@@ -460,12 +458,9 @@ void Slit::addClient(Window w) {
460 int num_return = 0; 458 int num_return = 0;
461 459
462 if (XGetWMProtocols(disp, w, &proto, &num_return)) { 460 if (XGetWMProtocols(disp, w, &proto, &num_return)) {
463
464 XFree((void *) proto); 461 XFree((void *) proto);
465#ifdef DEBUG
466 } else { 462 } else {
467 cerr<<"Warning: Failed to read WM Protocols. "<<endl; 463 fbdbg<<"Warning: Failed to read WM Protocols. "<<endl;
468#endif // DEBUG
469 } 464 }
470 465
471 XWindowAttributes attrib; 466 XWindowAttributes attrib;