diff options
author | mathias <mathias> | 2006-10-30 19:31:15 (GMT) |
---|---|---|
committer | mathias <mathias> | 2006-10-30 19:31:15 (GMT) |
commit | e5e76e7761f52ba7c0deca75bcecae4fbd3e2ff5 (patch) | |
tree | c84838a84802805e9b1463045e86200b7cef917f /src/FbTk/EventManager.cc | |
parent | 426c12c25c2ef095a882619ad7424684b88465b8 (diff) | |
download | fluxbox_pavel-e5e76e7761f52ba7c0deca75bcecae4fbd3e2ff5.zip fluxbox_pavel-e5e76e7761f52ba7c0deca75bcecae4fbd3e2ff5.tar.bz2 |
Cosmetic patch from Slava Semushin
Diffstat (limited to 'src/FbTk/EventManager.cc')
-rw-r--r-- | src/FbTk/EventManager.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc index 3370fb5..02259ac 100644 --- a/src/FbTk/EventManager.cc +++ b/src/FbTk/EventManager.cc | |||
@@ -25,8 +25,11 @@ | |||
25 | #include "FbWindow.hh" | 25 | #include "FbWindow.hh" |
26 | #include "App.hh" | 26 | #include "App.hh" |
27 | 27 | ||
28 | #ifdef DEBUG | ||
28 | #include <iostream> | 29 | #include <iostream> |
29 | using namespace std; | 30 | using std::cerr; |
31 | using std::endl; | ||
32 | #endif // DEBUG | ||
30 | 33 | ||
31 | namespace FbTk { | 34 | namespace FbTk { |
32 | 35 | ||
@@ -180,13 +183,13 @@ void EventManager::dispatch(Window win, XEvent &ev, bool parent) { | |||
180 | break; | 183 | break; |
181 | }; | 184 | }; |
182 | 185 | ||
183 | // find out which window is the parent and | 186 | // find out which window is the parent and |
184 | // dispatch event | 187 | // dispatch event |
185 | Window root, parent_win, *children = 0; | 188 | Window root, parent_win, *children = 0; |
186 | unsigned int num_children; | 189 | unsigned int num_children; |
187 | if (XQueryTree(FbTk::App::instance()->display(), win, | 190 | if (XQueryTree(FbTk::App::instance()->display(), win, |
188 | &root, &parent_win, &children, &num_children) != 0) { | 191 | &root, &parent_win, &children, &num_children) != 0) { |
189 | if (children != 0) | 192 | if (children != 0) |
190 | XFree(children); | 193 | XFree(children); |
191 | 194 | ||
192 | if (parent_win != 0 && | 195 | if (parent_win != 0 && |