diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-17 15:35:07 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-17 15:35:07 (GMT) |
commit | ce0b41c8472135898a553d6d649d852beb80cffb (patch) | |
tree | 8cca2f6d8795c19c86ab70fa22e9c724e5f4453b /src/FocusControl.cc | |
parent | 7a86dad21b1d50b35857496c165e4e85cc0d2bd3 (diff) | |
download | fluxbox_pavel-ce0b41c8472135898a553d6d649d852beb80cffb.zip fluxbox_pavel-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/FocusControl.cc')
-rw-r--r-- | src/FocusControl.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc index bf79d3e..3ba9dc6 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "Workspace.hh" | 28 | #include "Workspace.hh" |
29 | #include "fluxbox.hh" | 29 | #include "fluxbox.hh" |
30 | #include "FbWinFrameTheme.hh" | 30 | #include "FbWinFrameTheme.hh" |
31 | #include "Debug.hh" | ||
31 | 32 | ||
32 | #include "FbTk/EventManager.hh" | 33 | #include "FbTk/EventManager.hh" |
33 | 34 | ||
@@ -39,7 +40,6 @@ | |||
39 | #include <string.h> | 40 | #include <string.h> |
40 | #endif | 41 | #endif |
41 | 42 | ||
42 | using std::cerr; | ||
43 | using std::endl; | 43 | using std::endl; |
44 | using std::string; | 44 | using std::string; |
45 | 45 | ||
@@ -551,14 +551,13 @@ void FocusControl::setFocusedWindow(WinClient *client) { | |||
551 | FocusControl::focusedWindow() ? | 551 | FocusControl::focusedWindow() ? |
552 | &FocusControl::focusedWindow()->screen() : 0; | 552 | &FocusControl::focusedWindow()->screen() : 0; |
553 | 553 | ||
554 | #ifdef DEBUG | 554 | fbdbg<<"------------------"<<endl; |
555 | cerr<<"------------------"<<endl; | 555 | fbdbg<<"Setting Focused window = "<<client<<endl; |
556 | cerr<<"Setting Focused window = "<<client<<endl; | ||
557 | if (client != 0) | 556 | if (client != 0) |
558 | cerr<<"title: "<<client->title()<<endl; | 557 | fbdbg<<"title: "<<client->title()<<endl; |
559 | cerr<<"Current Focused window = "<<s_focused_window<<endl; | 558 | fbdbg<<"Current Focused window = "<<s_focused_window<<endl; |
560 | cerr<<"------------------"<<endl; | 559 | fbdbg<<"------------------"<<endl; |
561 | #endif // DEBUG | 560 | |
562 | 561 | ||
563 | // Update the old focused client to non focus | 562 | // Update the old focused client to non focus |
564 | if (s_focused_fbwindow && | 563 | if (s_focused_fbwindow && |