- 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);
while (XPending(OBDisplay::display)) {
XNextEvent(OBDisplay::display, &e);
unfocus = e.xfocus.window;
focus = None;
//printf("FocusOut focus=%lx unfocus=%lx\n", focus, unfocus);
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
// madly compress all crossing events
} else if (e.type == EnterNotify) {
// any other types are not ones we're interested in
leave_root = e.xcrossing.root;
//printf("Leave enter=%lx leave=%lx\n", enter, leave);
}
leave_root = e.xcrossing.root;
//printf("Leave enter=%lx leave=%lx\n", enter, leave);
}
_crossing_e.xcrossing.window = enter;
_crossing_e.xcrossing.root = enter_root;
dispatch(_crossing_e.xcrossing.window, _crossing_e);
_crossing_e.xcrossing.window = enter;
_crossing_e.xcrossing.root = enter_root;
dispatch(_crossing_e.xcrossing.window, _crossing_e);