fix floating drop
This commit is contained in:
10
src/node.cpp
10
src/node.cpp
@@ -607,6 +607,9 @@ bool Node::is_child(Node* o) const
|
||||
|
||||
void Node::mouse_capture()
|
||||
{
|
||||
if (!m_parent || !m_manager)
|
||||
return;
|
||||
|
||||
auto root = m_manager->get_ref("main");
|
||||
if (!root) return;
|
||||
|
||||
@@ -649,7 +652,7 @@ void Node::mouse_capture()
|
||||
|
||||
void Node::mouse_release()
|
||||
{
|
||||
if (!m_parent)
|
||||
if (!m_parent || !m_manager)
|
||||
return;
|
||||
|
||||
auto root = m_manager->get_ref("main");
|
||||
@@ -678,7 +681,7 @@ void Node::mouse_release()
|
||||
|
||||
void Node::key_capture()
|
||||
{
|
||||
if (!m_parent)
|
||||
if (!m_parent || !m_manager)
|
||||
return;
|
||||
|
||||
auto root = m_manager->get_ref("main");
|
||||
@@ -690,6 +693,9 @@ void Node::key_capture()
|
||||
|
||||
void Node::key_release()
|
||||
{
|
||||
if (!m_parent || !m_manager)
|
||||
return;
|
||||
|
||||
auto root = m_manager->get_ref("main");
|
||||
if (!root) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user