summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-07 22:02:43 +0000
committerDana Jansens <danakj@orodu.net>2003-01-07 22:02:43 +0000
commitbcc9f6812b870c577008b4d61758885c1b2c91dd (patch)
tree2978eca530f69206928b9571e81b928b59b2b13e
parent0147a61f89ad65755740222b69ab9e4251920a73 (diff)
stop compressing enter/leave events.. this might be responsible for the focu sfuckups?
-rw-r--r--otk/eventdispatcher.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc
index 36802f16..2ce13171 100644
--- a/otk/eventdispatcher.cc
+++ b/otk/eventdispatcher.cc
@@ -45,8 +45,8 @@ void OtkEventDispatcher::dispatchEvents(void)
{
XEvent e;
Window focus = None, unfocus = None;
- Window enter = None, leave = None;
- Window enter_root = None, leave_root = None;
+/* Window enter = None, leave = None;
+ Window enter_root = None, leave_root = None;*/
while (XPending(OBDisplay::display)) {
XNextEvent(OBDisplay::display, &e);
@@ -112,7 +112,8 @@ void OtkEventDispatcher::dispatchEvents(void)
unfocus = e.xfocus.window;
focus = None;
//printf("FocusOut focus=%lx unfocus=%lx\n", focus, unfocus);
- }
+ }
+ /*
// madly compress all crossing events
} else if (e.type == EnterNotify) {
// any other types are not ones we're interested in
@@ -129,6 +130,7 @@ void OtkEventDispatcher::dispatchEvents(void)
leave_root = e.xcrossing.root;
//printf("Leave enter=%lx leave=%lx\n", enter, leave);
}
+ */
} else {
// normal events
dispatch(win, e);
@@ -160,7 +162,7 @@ void OtkEventDispatcher::dispatchEvents(void)
_focus = focus;
}
-
+ /*
if (leave != None) {
_crossing_e.xcrossing.type = LeaveNotify;
_crossing_e.xcrossing.window = leave;
@@ -172,7 +174,7 @@ void OtkEventDispatcher::dispatchEvents(void)
_crossing_e.xcrossing.window = enter;
_crossing_e.xcrossing.root = enter_root;
dispatch(_crossing_e.xcrossing.window, _crossing_e);
- }
+ }*/
}
void OtkEventDispatcher::dispatch(Window win, const XEvent &e) {