aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/EventManager.cc
diff options
context:
space:
mode:
authormathias <mathias>2006-10-30 19:31:15 (GMT)
committermathias <mathias>2006-10-30 19:31:15 (GMT)
commite5e76e7761f52ba7c0deca75bcecae4fbd3e2ff5 (patch)
treec84838a84802805e9b1463045e86200b7cef917f /src/FbTk/EventManager.cc
parent426c12c25c2ef095a882619ad7424684b88465b8 (diff)
downloadfluxbox_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.cc11
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>
29using namespace std; 30using std::cerr;
31using std::endl;
32#endif // DEBUG
30 33
31namespace FbTk { 34namespace 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 &&