diff --git a/src/ui/manager.cpp b/src/ui/manager.cpp index aae01bf3d..c3396db3a 100644 --- a/src/ui/manager.cpp +++ b/src/ui/manager.cpp @@ -498,6 +498,7 @@ void Manager::generateMessagesFromOSEvents() set_mouse_cursor(kArrowCursor); mouse_display = display; }); + msg->setRecipient(this); enqueueMessage(msg); lastMouseMoveEvent = osEvent; break; @@ -513,7 +514,7 @@ void Manager::generateMessagesFromOSEvents() mouse_display = nullptr; } }); - + msg->setRecipient(this); enqueueMessage(msg); // To avoid calling kSetCursorMessage when the mouse leaves @@ -1665,6 +1666,11 @@ bool Manager::onProcessMessage(Message* msg) else return false; } + case kCallbackMessage: { + CallbackMessage* callback = static_cast(msg); + callback->call(); + return true; + } }