fix cursor visibility in OSX
This commit is contained in:
@@ -104,11 +104,13 @@ kEventResult Node::on_event(Event* e)
|
||||
MouseEvent e2 = *me;
|
||||
e2.m_type = kEventType::MouseUnfocus;
|
||||
child_mouse_focus->handle_event(&e2);
|
||||
child_mouse_focus->m_mouse_focus = false;
|
||||
}
|
||||
MouseEvent e2 = *me;
|
||||
e2.m_type = kEventType::MouseFocus;
|
||||
current_mouse_capture->handle_event(&e2);
|
||||
child_mouse_focus = current_mouse_capture;
|
||||
child_mouse_focus->m_mouse_focus = true;
|
||||
}
|
||||
return current_mouse_capture->on_event(e);
|
||||
}
|
||||
@@ -140,11 +142,13 @@ kEventResult Node::on_event(Event* e)
|
||||
MouseEvent e2 = *me;
|
||||
e2.m_type = kEventType::MouseUnfocus;
|
||||
child_mouse_focus->handle_event(&e2);
|
||||
child_mouse_focus->m_mouse_focus = false;
|
||||
}
|
||||
MouseEvent e2 = *me;
|
||||
e2.m_type = kEventType::MouseFocus;
|
||||
(*it)->handle_event(&e2);
|
||||
child_mouse_focus = it->get();
|
||||
child_mouse_focus->m_mouse_focus = true;
|
||||
}
|
||||
ret = kEventResult::Consumed;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user